Backend Integration
The File Picker’s performance depends largely on your backend. Review the code snippets (components making API calls to Svelte +server) to help you integrate your backend.
GET
Loading Media
The $fileInputStore.serverGetUrl endpoint is used to load files onMount.
javascript
Loading...Responses are expected in the following format:
json
Loading...Storage information
The $fileInputStore.serverStorageUrl endpoint is used to retrieve storage usage information from your cloud
js
Loading...POST
Uploading to storage
The $fileInputStore.serverUploadUrl endpoint is used to upload files to your cloud. If any error occurs or specific files fail to upload, the error will be displayed using toasts.
javascript
Loading...Downloading from storage
The $fileInputStore.serverDownloadUrl endpoint is used to download files from your cloud. Note that files are downloaded one at a time.
javascript
Loading...DELETE
Deleting from storage
The $fileInputStore.serverDeleteUrl endpoint is used to delete files from your cloud
javascript
Loading...