Upload
The upload as returned by the API.
The upload as returned by the API.
| Property | Type | Required | Description |
|---|---|---|---|
filename | string | Yes | The name of the file to be assembled from this upload's parts. |
purpose | Purpose | No | The intended purpose of the assembled file. Default: "assistants". |
bytes | integer | Yes | The expected total size of the file, in bytes (1 to 512000000000). |
mime_type | string | Yes | The MIME type of the file to be assembled. Becomes the resulting File's content type (an unusable or generic value falls back to one guessed from the filename). |
project_id | string | Yes | The project identifier the upload belongs to. |
object | string | No | The object type, which is always upload. Always upload. Default: "upload". |
status | UploadStatus | No | The status of the upload. Default: "pending". |
received_bytes | integer | No | The total size of the parts accepted so far. Default: 0. |
part_count | integer | No | The number of parts accepted so far (at most the parts one complete request can list). Default: 0. |
id | string | Yes | The upload identifier, which can be referenced in the API endpoints. |
created_at | integer | No | The Unix timestamp (in seconds) for when the upload was created. |
expires_at | integer | No | The Unix timestamp (in seconds) for when the upload will expire. |
file | File | null | No | The File produced once this upload completes. |
We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.