Create a new file record and receive a presigned URL for uploading content to S3.
A company API key, company scoped JWT, app API key, or user OAuth token. You must prepend your key/token with the word 'Bearer', which will look like Bearer ***************************
Parameters for CreateFile
The name of the file including its extension (e.g., "photo.png" or "document.pdf").
A successful response
A file that has been uploaded or is pending upload.
The unique identifier for the file.
"file_xxxxxxxxxxxxx"
The current upload status of the file (e.g., pending, ready).
pending, processing, ready, failed The original filename of the uploaded file, including its file extension.
"document.pdf"
The MIME type of the uploaded file (e.g., image/jpeg, video/mp4, audio/mpeg).
"image/jpeg"
The file size in bytes. Null if the file has not finished uploading.
"123.45"
The CDN URL for accessing the file. Null if the file has not finished uploading.
"https://media.whop.com/abc123/document.pdf"
The presigned URL to upload the file contents to. Only present in the response from the create mutation.
"https://media.whop.com/uploads/presigned"
Headers to include in the upload request. Only present in the response from the create mutation.