send-file-add
Added at V2.3
Use this interface to add files to the file upload list, currently it only supports uploading files recorded on SD card.
HTTP Request
POST http://ip/usapi?method=send-file-add
Parameter | Description |
---|---|
method | send-file-add |
Request Header
Content-Type: application/json;charset=UTF-8
Request Payload
{
disk-type: 1, // Storage device type, 0: USB flash drive, 1: SD card
media-files: ["VID_6_14.mp4"] // Array of file names to be deleted
}
Response Body
{
"result": 0
}
Item | Description |
---|---|
result | 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values. |