GET /presigned-url with your server-side service key and returns a short-lived uploadUrl. Uploads sent to that URL are checked against the path, file count, file size and MIME rules you configured.
Create an upload URL
Upload with the URL
UseuploadWithPresignedUrl if a server resource already has a token or full upload URL and wants to send a file through it.
Options
| Option | Description |
|---|---|
path | Locks uploads to a CDN folder. |
maxFiles | Maximum files accepted by the URL. |
expiresIn | URL lifetime in seconds. |
maxFileSize | Maximum bytes accepted per file. |
allowedMimeTypes | MIME allow-list such as image/png or image/jpeg. |
allowCustomMetadata | Allows upload requests to include metadata. |