Search in documentation:     Advanced search
Browse by category:

Uploading forms

Views: 1821
Votes: 1
Posted: 21 May, 2008
Updated: 01 Jul, 2009
Here is an example of a valid upload form using our APIs. Please notice the "enctype" property:

 
<!-- Upload Form -->
<form method="post" enctype="multipart/form-data" action="http://upload.kewego.com/api/uploadVideo/index.php">
<input type="file" name="file" />
<input type="hidden" name="appToken" value="swdkfwkljdwsklwdlkfjwklswkljklj" />

<input type="hidden" name="xml_data" value="
<kewego_call>
<params>
<title>Test title</title>
<description>This is a description</description>
<categories>
<category>News</category>
</categories>
<keywords>
<keyword>test1</keyword>
 <keyword>test2</keyword>
<keyword>test3</keyword>
<keyword>test4</keyword>
<keyword>test5</keyword>
</keywords>
<language>en</language>
 <country>gb</country>
<postal_code>75017</postal_code>
<access>restricted</access>
<video_pid>123456</video_pid>
<commentable>yes</commentable>
<shareable>no</shareable>
<notable>no</notable>
</params>
</kewego_call>" />
<input type="text" name="token"
value="f3a58cb7159a3c22d767489fcc87a07721a2484abc8c36f688789d690bf719fbc97bb64fb1d7abd74ebcf60a389b4a62" />

<input id="Submit3" type="submit" value="submit" />
</form>





Attached files
file upload_xml_data.xsd (3 kb)

Also read
document uploadVideo
document getToken

Others in this Category
document Uploading a video
document Using Upload API calls.



RSS