ready.
Use the Files API to create a file, upload its content directly to storage (in one PUT, or in parts for large files), and retrieve it while polling for readiness. A ready file’s ID can be attached wherever Whop accepts files.
Endpoints
Attributes
BlurHash placeholder for an image or video. Null when unavailable or removed
by moderation.
The original file’s MIME type, for example
application/pdf. It is kept when
moderation removes the file.Audio or video duration in seconds. Null when unavailable or removed by
moderation.
Image or video height in pixels. Null when unavailable or removed by
moderation.
The byte size each part (except the last) must be. Present only on create, and
only for multipart uploads.
The ID of the multipart upload, passed back to
complete. Present only on
create, and only for multipart uploads.Whether moderation removed the file. When
true, url serves a replacement
image. filename, size and content_type still describe the original file.Where the file is in its upload lifecycle.Available options:
pending, processing, ready, failedPresigned URL to PUT the file’s bytes to. Present only on create, and only for
single-part uploads.
A URL to download the file. Public files get a permanent CDN URL, and private
files get a signed URL that expires.
null until the upload has finished.
When moderation removes the file, a replacement image URL.public files are served from an unsigned CDN URL. private files are served from a signed URL that expires.Available options: public, privateFile

