Search in documentation:     Advanced search
Browse by category:

Using Upload API calls.

Views: 529
Votes: 0
Posted: 29 Jun, 2009
Updated: 02 Jul, 2009
There are several API calls that you can use to upload a file. Let's see the 3 available upload processes that you can build in your website :

1) Uploading a file using a single API call :

The upload/uploadVideo  function can be used to upload a file and associated datas (title, description, keywords, category, etc.) at the same time. When the upload finishes, the encoding process starts.
             

See a sample of valid HTML form.


NOTICE :

         - an API call is available to get the upload progression while uploading : upload/getUploadProgress (Request MD5 computoring before upload : it is used as a file identifier).
             
         - another API call is available after the upload to get the status of the video : video/getAvailabilityStatus (encoding in progress, video available or error while encoding).

2) Uploading video file and associated datas in 3 steps :

Use upload/prepareUploadupload/uploadFile and upload/finishUpload API calls.

    2-a) Sending datas before uploading the file :



NOTICE : upload_token is generated by prepareUpload method and upload_file_token by uploadFile method. Both are necessary fields in finishUpload API call.


   2-b) Uploading at first the video file, and then the datas :

Others in this Category
document Uploading forms
document Uploading a video



RSS