All Products
Search
Document Center

AttachedMediaUploadComplete

Last Updated: Jul 11, 2019

Event type

AttachedMediaUploadComplete

Event description

An AttachedMediaUploadComplete event is generated after an attached media asset file is uploaded.

Event content

Parameter Type Description
EventTime String The time when the event occurs. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
EventType String The type of the event. Set this parameter to AttachedMediaUploadComplete.
AttachedMediaId String The ID of the attached media asset.
Size Long The size of the attached media asset file that is uploaded. Unit: bytes.
FileURL String The URL of the attached media asset file that is uploaded.
Status String Indicates whether the upload is successful. A value of success indicates that the upload is successful.

Note: The ApsaraVideo for VOD server supports resumable uploads and cannot determine whether an upload task is intentionally paused or has failed. Therefore, no event notification is sent upon an upload failure.

Callback example

Note:

  • For an HTTP callback, write the following code as the HTTP POST request body.
  • For an MNS callback, write the following code as the message body.
  1. {
  2. "EventTime": "2019-01-20T07:49:17Z",
  3. "EventType": "AttachedMediaUploadComplete",
  4. "AttachedMediaId": "xxxxxxxxxxxxxxxxxxxxxx",
  5. "Size": 14333,
  6. "FileURL": "https://xxxxxxxxxxxxxxxxxxxxxxxxx",
  7. "Status":"success"
  8. }