upload


Handles the uploading of videos. The “file” method requires the photo to be passed via POST with multipart/form-data.

Parameters

Name Description
method optional Upload Method – Potential values are ‘file’, ‘path’ and ‘url’.
video_file optional File Descriptor
url optional The external URL path to the video file. Used with the ‘url’ upload method.
path optional The internal filesystem path to the video file. Used with the ‘path’ upload method.
user_id optional The id of the user that the video will be associated with.
site_id optional The id of the site that the video will be associated with.
node_id optional The id of the node that the video will be associated with.
gallery_id optional The id of the gallery to which the video will be loaded.
title optional Title/caption of the video.
includeFullObjects optional Whether or not to return the full video object on return.
output optional The response output format. Accepts JSON and XML.

Request Syntax

https://services.onesite.com/rest/svcVideoUpload?action=upload&method=url&user_id=229928503&site_id=234714047&node_id=188234&url=https://onesitedemo.com/video/sample_sorenson.mov&title=Test svcVideoUpload.upload video&devkey=[devkey]

JSON Response