reference

Storage Methods

All available methods on postbase.storage — bucket management and object operations.

Published: March 22, 2026Updated: March 22, 2026

Storage Methods

Bucket Management

  • createBucket(name, options?) — Create a new bucket

  • getBucket(id) — Get bucket metadata

  • listBuckets() — List all buckets

  • updateBucket(id, options) — Update bucket settings

  • deleteBucket(id) — Delete an empty bucket

  • emptyBucket(id) — Delete all objects in a bucket

Object Operations

Call postbase.storage.from(bucketName) to get a StorageBucketClient:

  • upload(path, file, options?) — Upload a file

  • download(path) — Download a file as a Blob

  • remove(paths[]) — Delete one or more objects

  • list(prefix?, options?) — List objects in a path

  • getPublicUrl(path) — Get the public URL (bucket must be public)

  • createSignedUrl(path, expiresIn) — Create a temporary signed download URL

  • move(fromPath, toPath) — Move / rename an object

  • copy(fromPath, toPath) — Copy an object