ApsaraVideo VOD generates the ImageUploadComplete event after an image file is successfully uploaded.
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 was generated, in UTC. Format: yyyy-MM-ddTHH:mm:ss:SSSZ. |
|
EventType |
String |
Yes |
The event type. Fixed value: 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 |
Whether the image upload succeeded.
|
Because ApsaraVideo VOD supports resumable uploads, the server cannot distinguish a paused upload from a failed one. No event notification is sent for failed uploads.
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****"
}