-
Notifications
You must be signed in to change notification settings - Fork 0
api upload send
Alban LEROUX edited this page Feb 28, 2012
·
1 revision
This upload a chunk of a file.
See : Upload
require write
grant access
{
"method" : "upload.send",
"request" :
{
"id" : "up_rla52vlY",
"chunk" : "13",
"data" : "PD9waHAKCm5hbWVzcGFjZSBhcHBccGx1Z2luc1xwaG90b..."
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
<method>upload.send</method>
<request>
<id>up_rla52vlY</id>
<chunk>13</chunk>
<data>PD9waHAKCm5hbWVzcGFjZSBhcHBccGx1Z2luc1xwaG90b...</data>
</request>
</xml>
{
"status" : "valid",
"response" : { "message" : "uploaded" }
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
<status>valid</status>
<response>
<message>uploaded</message>
</response>
</xml>
- id : The upload session id provided by upload.init.
- chunk: The chunk number. Chunks are numbered from 1 to X.
- data : The base64 encoded chunk.
- message: Confirmation message.