Skip to content
Alban LEROUX edited this page Feb 28, 2012 · 1 revision

API

upload.end

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

Request example

{
	"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>

Response example

{
	"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>

Arguments

Return Value

  • file: The uploaded file.
Clone this wiki locally