This topic describes the ImageUploadComplete event, its notification content, and callback examples.
Event type
ImageUploadComplete
Event description
The ImageUploadComplete event is generated after an image file is successfully uploaded.
Event content
Parameter name | Type | Required | Description |
EventTime | String | Yes | The time when the event is generated. The time is in UTC and uses the yyyy-MM-ddTHH:mm:ss:SSSZ format. |
EventType | String | Yes | The event type. The value is fixed to ImageUploadComplete. |
ImageId | String | Yes | The ID of the image. |
Size | Long | No | The size of the uploaded file in bytes. |
FileURL | String | No | The URL of the uploaded image file. |
Status | String | Yes | Indicates whether the upload is successful.
|
Because resumable uploads are supported, the ApsaraVideo VOD server cannot determine whether an upload is paused or has failed. Therefore, no notification is sent for a failed upload.
Callback examples
Callback example:
For an HTTP callback, the following content is the HTTP POST body.
For an MNS callback, the following content is the message body.
{
"Status": "success",
"FileURL": "https://example-bucket-****.oss-cn-shanghai.aliyuncs.com/image/default/AF8018C2908A434HD73JA678D08B0E****.jpg",
"AppId": "app-1000000",
"EventType": "ImageUploadComplete",
"EventTime": "2024-04-10T01:37:14:627Z",
"Size": 105520,
"ImageId": "59bdbf10df76a8d8b6137a5ad12****"
}