This topic describes the notification content of the FileUploadComplete event and provides sample callbacks.

Event type

FileUploadComplete

Event description

The FileUploadComplete event is generated after files are uploaded to ApsaraVideo VOD.

Event notification content

Parameter Type Required Description
EventTime String Yes The time when the event is generated. The time is in the yyyy-MM-ddTHH:mm:ssZ format and is displayed in UTC.
EventType String Yes The event type. The value is FileUploadComplete.
VideoId String Yes The ID of the video file.
Size Long No The size of the uploaded file. Unit: bytes.
FileUrl String No The URL of the uploaded file.
Status String Yes Indicates whether the file is uploaded. Valid values:
  • success: The file is uploaded.
  • fail: The file fails to be uploaded.
Note ApsaraVideo VOD cannot determine whether an upload job is paused or fails because resumable upload is supported. Therefore, no notification is sent if an upload job fails.

Sample callbacks

Description:

  • For an HTTP callback, the following example is the message body of the HTTP POST request.
  • For an MNS callback, the following example is the message body.
{ 
    "Status": "success",
    "EventTime": "2017-03-20T07:49:17Z",
    "EventType": "FileUploadComplete", 
    "VideoId": "43q91jdh7df****", 
    "Size": 1439213,
    "FileUrl":"http://example-bucket-****.oss-cn-shanghai.aliyuncs.com/27ffc438-164h67f57ef-0005-6884-51a-1****.mp4"
}