uploadUrl, call this endpoint to verify the file. Returns updated file metadata. A missing file or size above 100 MiB returns 400; a failed upload or a file that changes during verification returns 409.
Signature
Method signature onclient.files:
Parameters
string
required
Project ID with prefix
pp..string
required
ID of the project file, with prefix
ppf..Returns
Promise<ProjectFile>
A file stored in a project.
ProjectFileId
required
ID of the project file, with prefix
ppf..ProjectId
required
Project ID with prefix
pp..string
required
Name of the project file.
"pending" | "uploaded" | "failed"
required
File state:
pending before finalization, uploaded after successful finalization, or failed if the upload failed.number
required
Declared maximum size of the file, in bytes.
number | null
required
Finalized file size in bytes, or null before successful finalization.
string
required
Time the file upload was started, as an ISO 8601 timestamp.
string | null
required
Time the upload was finalized, as an ISO 8601 timestamp, or null before successful finalization.
string
required
The file download endpoint. API keys and signed-in users receive a 302 redirect to the download link. Project-scoped tokens receive JSON with a
url field.Errors
HTTP errors throwPotatoApiError. The endpoint documents these error responses:
HTTP endpoint:
POST /projects/{projectId}/files/{fileId}/finalize.