Description: Allow users to select a video file on their computers or mobile devices and upload it to your Nimbb account directly from your site using an HTML form.
Example of function call using HTML code:
<form name="form" method="post" enctype="multipart/form-data" action="http://api.nimbb.com/Live/Upload.aspx?key=PUBLIC_KEY&re=URL_ERROR&rs=URL_SUCCESS">
Select file: <input name="file" type="file" />
<input type="submit" value="Upload file" />
where you replace the values:
PUBLIC_KEY: your developer public key;
URL_ERROR: an URL on your site to redirect the user in case an error occurs. Note that an error code is appended to this URL;
URL_SUCCESS: an URL on your site to redirect the user once the video is uploaded successfully. The parameter "guid" is added to the URL to provide the GUID of the saved Nimbb video.
For this code to work, you must follow these rules:
- DO NOT specify your private developer key;
- Make sure your site URL has been added to your settings.
In addition, we currently support upload of .mp4 and .mov files with the following resolutions (in pixels): 112x200, 144x176, 144x192, 176x144, 180x320, 190x240, 192x144, 200x112, 240x190, 240x320, 240x426, 240x432, 270x480, 272x480, 288x352, 300x400, 300x526, 304x538, 320x180, 320x240, 320x560, 320x568, 352x288, 352x640, 356x640, 360x480, 360x492, 360x640, 364x640, 368x640, 384x688, 400x300, 404x720, 406x720, 426x240, 432x240, 480x270, 480x272, 480x360, 480x480, 480x640, 480x720, 480x848, 480x850, 480x852, 480x856, 492x360, 526x300, 538x304, 560x320, 568x320, 576x768, 576x1024, 584x1002, 600x600, 638x1148, 640x352, 640x356, 640x360, 640x364, 640x368, 640x480, 640x980, 688x384, 720x404, 720x406, 720x480, 720x958, 720x960, 720x1274, 720x1280, 768x576, 848x480, 850x480, 852x480, 856x480, 900x1200, 958x720, 960x720, 980x640, 1002x584, 1024x576, 1080x1920, 1148x638, 1274x720, 1200x900, 1200x1920, 1280x720, 1920x1080, 1920x1200. Uploaded file size cannot exceed 40Mb and only 1 file can be uploaded at once.
Go back to Web Service documentation.