File storage

Supersaas supports S3 Storage, NuxtHub storage and if you want to just store it in local file system, that's supported as well.

Demos for uploading from server, uploading from client using a unique one time URL to save bandwidth costs are included.

S3

Any S3 compatible storage works out of the box.

NuxtHub Blob

Super easy to use with hubBlob() helper.

Local

Store files in local file system.

File Storage

Actions available

MethodParametersReturns
upload() key: string; data: Buffer | Blob | string; contentType?: string; Promise string
getObjectUrl()key: string;string
delete()key: string;Promise void
getSignedUrlForRead()key: string, expiresIn?: numberPromise string