File object representing an uploaded file.

interface UploadedFile {
    bytes?: number;
    created_at?: number;
    expires_at?: number;
    filename?: string;
    id?: string;
    object?: string;
    purpose?: string;
}

Properties

bytes?: number

Size of the file in bytes.

created_at?: number

Unix timestamp when the file was created.

expires_at?: number

Unix timestamp when the file expires (0 if no expiration).

filename?: string

The name of the file.

id?: string

The unique identifier for the file.

object?: string

The object type, which is always "file".

purpose?: string

Purpose of the file.