Request upload
Requests a presigned URL for uploading a file. Returns either a direct upload URL or multipart upload parts for large files.
Required scopes: upl:uploads:create
Authorization
OAuth2 upl:uploads:createAuthorizationBearer <token>
OAuth 2.0 authorization
In: header
Scope: upl:uploads:create
Header Parameters
Connect-Protocol-Version?number
Define the version of the Connect protocol
Connect-Timeout-Ms?number
Define the timeout, in ms
Request Body
application/json
bucketRef?|&|
Reference to the bucket
filesizeBytes?string
Size of the file in bytes. 0 is accepted for multipart uploads whose size is only known on completion (S3-protocol CreateMultipartUpload). validate:skip older clients generated with an int32 field sign-extend sizes over 2 GiB to negative; no bound the server enforces
Format
int64mimeType?string
MIME type of the file
Length
length <= 1024extension?string
File extension
Length
length <= 1024multipart?boolean
Indicates if the upload is multipart validate:skip a bool has no bounds
[key: string]?never
Response Body
application/json
application/json
curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.BucketUploadsService/RequestUpload" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"uploadId": "c4e2a9f1-7b3d-4a65-8e0f-1d9b6c3a2e57",
"direct": "map[uploadUrl:https://storage.upl.im/uploads/c4/e2/a9/f1/c4e2a9f1-7b3d-4a65-8e0f-1d9b6c3a2e57.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&X-Amz-Signature=b27e…]"
}