Upload Attached File
upload_attached_fileChatGPT only: upload an image or video the user attached in ChatGPT. Other clients: use open_upload_box (user picks files from their device), create_upload_url (if you can run curl) or upload_media_from_url instead. Call it once per file; for a carousel, upload each file and pass the returned media IDs to create_post in carousel order. For public links use upload_media_from_url. Supports: JPEG, PNG, GIF, WebP, MP4, MOV, PDF. Returns a media ID that can be attached to a post.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The file the user attached in chat |