Start a file upload into a share
POST/api/v1/shares/:shareId/files
Requires a valid safebucket_share_token cookie if the share is password-protected. Only allowed when the share has allow_upload: true. Returns a presigned POST policy, mirroring the authenticated upload flow.
Request
Responses
- 201
- 400
- 403
- 404
- 409
Presigned upload policy
File exceeds the share's max upload size (SHARE_UPLOAD_SIZE_EXCEEDED)
Uploads not allowed, or max uploads reached (SHARE_UPLOAD_NOT_ALLOWED, MAX_UPLOADS_REACHED, SHARE_MAX_UPLOADS_REACHED)
Target folder not found (FOLDER_NOT_FOUND)
A file with this name already exists in this location (FILE_ALREADY_EXISTS)