Documents

How a browser uploads a file to this deployment's storage

Changed on
get/api/v0/documents/upload-mode

Request

Response

Successful Response

mode'signed_url' | 'api' required

How a browser sends a file's bytes. signed_url: GET /documents/{document_id}/upload-url (or /components/{component_id}/upload-url), PUT the bytes to the URL it returns, then PUT the same path to start processing. api: send the bytes in the request body of PUT /documents/{document_id}/file (or POST /components with the image); no signed URL is issued.

Changes