FluxbaseStorage
//fluxbase-kotlin/io.github.nimbleflux.fluxbase.storage/FluxbaseStorage
FluxbaseStorage
Section titled “FluxbaseStorage”[jvm]
class FluxbaseStorage(http: FluxbaseHttpClient)
Storage module — port of FluxbaseStorage from sdk/src/storage.ts.
File upload/download/list against Fluxbase’s /api/v1/storage/{bucket}/....
Usage:
client.storage.from("trip-images").upload("photo.jpg", bytes, contentType = "image/jpeg")val (files, _) = client.storage.from("trip-images").list()val bytes = client.storage.from("trip-images").download("photo.jpg")NOTE: The TS SDK’s chunked/resumable upload (custom init/upload/complete protocol) is not yet ported — simple upload covers the Wayli app’s needs (trip media). Resumable upload will be added when the Wayli app’s media pipeline needs it.
Constructors
Section titled “Constructors”| FluxbaseStorage | [jvm] constructor(http: FluxbaseHttpClient) |
Functions
Section titled “Functions”| Name | Summary |
|---|---|
| from | [jvm] fun from(bucket: String): StorageBucket Start operating on a bucket. Port of from(bucket) in storage.ts. |