Signature
Method signature onclient.files:
Parameters
Returns
Promise<ProjectFile[]>
Files stored in this project.
Returns an array. Each item has these fields:
File state:
pending before finalization, uploaded after successful finalization, or failed if the upload failed.Time the upload was finalized, as an ISO 8601 timestamp, or null before successful finalization.
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:
GET /projects/{projectId}/files.