Create Upload URL
Creates an upload slot for a file you want to process later.
Flow:
- Call this endpoint. You can send
content_type(for exampleapplication/pdf), but it is optional. - Upload the file with the returned
method,urlandheadersbeforeexpires_at(about an hour after you create the slot). - Pass the returned
upload_idin theupload_idsfield of a Parse, Extract, Split or Classify request, instead of sendingfile. To include several uploads in one request, separate their ids with commas.
An upload_id can be used once: a second request that uses it returns 404 UPLOAD_NOT_FOUND. Using an upload_id before its file has been uploaded returns 400 UPLOAD_NOT_COMPLETED. The file type is detected from the file contents.
Authentication
Request
Optional MIME type you expect to upload, for example application/pdf. When set, it is returned in headers as the Content-Type to send with the upload. The file type is detected from the file contents, not from this value.
Response
Handle for the uploaded file. Pass it in upload_ids on a Parse, Extract, Split or Classify request. It can be used once.
HTTP method to use for the upload (e.g. PUT).
Headers to send with the upload request, for example Content-Type when you set content_type. Absent when there are none.