Cancel a video upload session.
Parameters for canceling video upload
Parameters for canceling video upload
The ID of this upload session, returned in init_video_upload
Promise indicating cancellation status
Complete the video upload and start the transcoding process when all parts are uploaded successfully.
Parameters for completing video upload
Parameters for completing video upload
All uploaded sequence numbers
Report data for tracking upload performance
The ID of this upload session, returned in init_video_upload
Promise indicating completion status
Call this API after all video parts have been successfully uploaded. The video will be transcoded and ready for use in item operations once transcoding completes.
Query the upload status and result of video upload.
Parameters for getting video upload result
Parameters for getting video upload result
The video_upload_id from init_video_upload response
Promise with upload status and video information (if transcoding is complete)
Initiate video upload session.
Parameters for initializing video upload
Parameters for initializing video upload
MD5 of video file
Size of video file, in bytes. Maximum is 30MB
Promise with video_upload_id for subsequent upload operations
Video duration should be between 10s and 60s (inclusive). Use the returned video_upload_id for uploading video parts and completing the upload.
Upload multiple image files to MediaSpace (less than 9 images).
Parameters for image upload
Parameters for uploading image to MediaSpace
Optionalimage?: File | Blob | Buffer<ArrayBufferLike>Image files. Max 10.0 MB each. Image format accepted: JPG, JPEG, PNG. Image number should be less than 9. Note: This is handled as multipart/form-data in the actual request
Optionalratio?: "1:1" | "3:4"Image aspect ratio. Only applicable to whitelisted sellers. Supported values: "1:1" (default), "3:4"
Optionalscene?: "normal" | "desc"The scene where the picture is used. Default is 'normal'
Promise with uploaded image information including image IDs and URLs
This API requires multipart/form-data content type.
Upload video file by part using the upload_id from initVideoUpload.
Parameters for uploading video part
Parameters for uploading video part
MD5 of this part
Optionalpart_content?: File | Blob | Buffer<ArrayBufferLike>The content of this part of file. Part size should be exactly 4MB, except last part of file. Note: This is handled as multipart/form-data in the actual request
Sequence of the current part, starts from 0
The video_upload_id from init_video_upload response
Promise indicating success or failure of the part upload
The request Content-Type should be multipart/form-data. Part size should be exactly 4MB, except for the last part of file.
MediaSpaceManager handles media file uploads (images and videos) to Shopee's media space.
This manager provides functionality for: