cURL
curl --request POST \ --url https://api.veryfront.com/projects/{project_reference}/uploads \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "file_path": "<string>", "size": 1, "content_type": "<string>" } '
{ "file_upload_url": "<string>", "file_path": "<string>", "upload_id": "<string>", "required_headers": { "Content-Type": "image/png", "x-goog-content-length-range": "0,1048576" } }
Creates a signed URL that allows direct upload to cloud storage. Client must declare the file size upfront for quota tracking.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Path where the file will be stored
File size in bytes (required for quota tracking)
x > 0
MIME type of the file
Signed upload URL created
Headers that must be included in the PUT request to the upload URL
Show child attributes
{ "Content-Type": "image/png", "x-goog-content-length-range": "0,1048576"}