Media file upload is supported via the "forklift" web application. Media files up to 25MB in size may be uploaded. The upload is accomplished via a POST of a multipart/form-data form. In order to upload a file, you must have a valid upload grant code; accounts will be limited to the amount of daily uploads and total size allowed for uploads. Currently accounts are limited to 100 uploaded files. Method: POST URI: /forklift/ Form parameters:
The response text is an HTTP URL to the newly-uploaded media. The media is immediately available using this URL. Note that the URI for production media is "media.telesocial.com" whereas the sandbox will return "mediasb.telesocial.com" Example: http://media.telesocial.com/audio/56c07bfe8f0255e77fe83986b7bffcd7/1700614602.mp3 A file upload example illustrated with an HTML form: <form method="post" enctype="multipart/form-data" action="http://api4.bitmouth.com/forklift"> <input type="text" name="grant"/> <input type="file" name="mediafile"/> </form> |
REST API >