Official plugins
Storage buckets
Connect a S3-like storage bucket to your SvelteKit application
Installation
List of officially supported buckets
Usage
You’re likely not going to use this plugin directly, as this is just a connection between other plugins.
This is one of the plugins that allow injection by other plugins, so you can depend on it in your plugin and extend it.
Extend the plugin
Here’s an example from the R2 plugin:
src/lib/index.ts
Methods
metadata
Get the metadata of a file.
Parameters: path: string
Returns: unknown
download
Download a file.
Parameters: path: string
Returns: ArrayBuffer
upload
Upload a file.
Parameters: path: string, data: ArrayBuffer
Returns: void
remove
Remove a file.
Parameters: path: string
Returns: void