All Products
Search
Document Center

UploadByURLComplete

Last Updated: Nov 19, 2018

Event type

UploadByURLComplete

Event description

An UploadByURLComplete event is generated after a video is uploaded as requested by a Upload videos from a URL task.

Event content

Name Type Description
EventTime String The time when the event occurs in UTC-8. Format: yyyy-MM-ddTHH:mm:ssZ.
EventType String The type of the event. The value is UploadByURLComplete.
VideoId String The ID of the video. This field is included when the video is successfully uploaded.
JobId String The ID of the upload task.
SourceURL String The URL of source file.
Status String The status of the upload task. A value of success indicates that the upload task is successful. A value of fail indicates that the upload task has failed.
ErrorCode String The error code returned when when the upload task fails.
ErrorMessage String The error message returned when when the upload task fails.

Callback example

The following example shows the body of an HTTP POST request for HTTP callbacks.

  • The upload task is successful.

    1. {
    2. "Status": "success",
    3. "EventTime": "2017-03-20T07:49:17Z",
    4. "EventType": "FileUploadComplete",
    5. "VideoId": "43q9fjasjdflask",
    6. "JobId": "4c815b4391b19c8e",
    7. "SourceURL ": "http://xxxxx.mp4",
    8. "Size":"123456"
    9. }
  • The upload task fails.

    1. {
    2. "Status": "fail",
    3. "EventTime": "2017-03-20T07:49:17Z",
    4. "EventType": "FileUploadComplete",
    5. "ErrorCode ": "URLInvalidError ",
    6. "ErrorMessage ": "download video failed by the url, please check it",
    7. "JobId": "4c815b4391b19c8e" ,
    8. "SourceURL ": "http://xxxxx.mp4"
    9. }