UploadMedia
Uploads an image or video.
Stored Procedure Specific Info
Upload Media
Use this procedure to upload images or videos to Twitter. It returns media Ids, which can be used to create a Tweet with an attached photo or video. The uploaded media expires in 24 hours after the upload. The video size should not be more then 15 MB and 30 seconds of the length.
Set MediaFilePath#INDEX for every media file. For example, the set of media files to upload would be
the following:
MediaFilePath#1 - path/to/file1 MediaFilePath#2 - path/to/file2
The result of the procedure is a list of media Ids, which can be retrieved by MediaId#INDEX for every media file uploaded.
Input
| Name | Type | Description |
| MediaFilePath# | String | Media file path to associate with the Tweet. You can include up to 4 photos or 1 animated GIF or 1 video in a Tweet. |
Result Set Columns
| Name | Type | Description |
| MediaId# | String | The Ids of the media uploaded. |