send-file-add
Use the interface to add files to the upload list. Files saved in SD card are now can be uploaded.
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, // disk where files are saved. 0: USB; 1: SD card
media-files: ["VID_6_14.mp4"] // array of file name to be deleted
}
Response Body
{
"result": 0
}
Item | Description |
---|---|
result | Returned status. 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values. |