Uploads a media file. The file can be video, audio or image. Refer to the list of supported file types to get the details. It is also possible to upload a media file directly to a channel by specifying the channel id. Tagging is possible by specifying a comma separated string of tags.
Requires a form token
Requires a session token - the user must be logged in
Supports redirectUrl param of fm:Form component
All optional params can be set to required.
<fm:Form action="/action/v2/uploadmedia" method="post" enctype="multipart/form-data" >
<fm:Form_Custom><input type="file" name="file[]" /></fm:Form_Custom>
<fm:Form_Custom><button type="submit">Upload File</button></fm:Form_Custom>
</fm:Form>
Name | Required | Description | |
file[] | Required | File to upload. Must be an image, video or audio format. | |
channel | Id of the channel to place the newly uploaded media file into. Must be numeric and be a valid channel id in the project in Newzulu Platform | ||
tags | Tags for the newly uploaded media file. String of comma separated tags, limited to 255 chars | ||
title | Title of the newly uploaded file. String, limited to 80 chars | ||
message | Description of the newly uploaded file. Text, limited to 65000 chars. |