-
Notifications
You must be signed in to change notification settings - Fork 0
api upload end
Alban LEROUX edited this page Feb 28, 2012
·
1 revision
This terminate a upload session. Call this method at the end, even if you are an error or not during the whole upload session.
See : Upload
require write
grant access
{
"method" : "upload.end",
"request" :
{
"id" : "up_rla52vlY"
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
<method>upload.end</method>
<request>
<id>up_rla52vlY</id>
</request>
</xml>
{
"status" : "valid",
"response" : { "file" : "/tmp/tempname-TzE24hLRdf5K.jpg" }
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
<status>valid</status>
<response>
<file>/tmp/tempname-TzE24hLRdf5K.jpg</file>
</response>
</xml>
- id : The upload session id provided by upload.init.
- file: The uploaded file.