string | null
required
The MIME type of the uploaded file (e.g., image/jpeg, video/mp4, audio/mpeg).Example:
image/jpegstring | null
required
The original filename of the uploaded file, including its file extension.Example:
document.pdfstring
required
The unique identifier for the file.Example:
file_xxxxxxxxxxxxxstring | null
required
The file size in bytes. Null if the file has not finished uploading.Example:
123.45UploadStatuses
required
The current upload status of the file (e.g., pending, ready).Available options:
pending, processing, ready, failedstring | null
required
The URL for accessing the file. For public files, this is a permanent CDN URL.
For private files, this is a signed URL that expires. Null if the file has not
finished uploading.
FileVisibility
required
Whether the file is publicly accessible or requires authentication.Available options:
public, private
