Initiate a chunked upload.
POST/:api_prefix/:service_name/admin/uploads/initiate
Premium — provided by the paid habarico-enterprise package; a free-only install does not expose this endpoint.
Starts a chunked upload of a file. For the s3-multipart provider the response shape
depends on the file size, signalled by the mode discriminator:
mode: put(files below the S3 multipart minimum, 5 MB): a single presigned PUTurlis returned. The browser uploads the whole file in one request; there is nocompletestep (the object is fully uploaded by the PUT).mode: multipart(larger files): an S3 multipart upload is created and presigned URLs are returned per part. The browser uploads the parts directly to storage and then callscomplete.completeis only called whenmode == "multipart".
Request
Responses
- 200
- 400
- 422
Premium — returned only by the paid habarico-enterprise package.
Upload initiated.