POST api/MediaObjects/UploadVideos
Allows to upload single or multiple video files (.mp4, .m4v, .ogg, .ogv, .webm, .wmv, .mov) into chosen folder/category.
Allows to upload single or multiple video files (.mp4, .m4v, .ogg, .ogv, .webm, .wmv, .mov) into chosen folder/category.
Accept: application/json
Content-Type: multipart/form-data; boundary="20d0023f-f99f-43d5-8ee7-9bfd0e616d10"
--20d0023f-f99f-43d5-8ee7-9bfd0e616d10
Content-Type: text/plain; charset=utf-8
Content-Disposition: form-data; name=CategoryName
Videos
--20d0023f-f99f-43d5-8ee7-9bfd0e616d10
Content-Type: text/plain; charset=utf-8
Content-Disposition: form-data; name=VideoName
Sample movie
--20d0023f-f99f-43d5-8ee7-9bfd0e616d10
Content-Type: text/plain; charset=utf-8
Content-Disposition: form-data; name=ThumbWidth
160
--20d0023f-f99f-43d5-8ee7-9bfd0e616d10
Content-Type: text/plain; charset=utf-8
Content-Disposition: form-data; name=ThumbHeight
120
--20d0023f-f99f-43d5-8ee7-9bfd0e616d10
Content-Type: text/plain; charset=utf-8
Content-Disposition: form-data; name=IsHidden
false
--20d0023f-f99f-43d5-8ee7-9bfd0e616d10
Content-Disposition: attachment; filename=SampleMovie.mp4
{ file bytes here }
--20d0023f-f99f-43d5-8ee7-9bfd0e616d10
Content-Disposition: attachment; filename=moon_light.jpg
{ thumbnail file bytes here }
--20d0023f-f99f-43d5-8ee7-9bfd0e616d10
[
{
"MediaID": "9705732f-c36d-4151-ba34-b457b6d7a2d3",
"FilePath": "~/Videos/SampleSite/Sample_movie_9KV9.mp4",
"ThumbnailFilePath": "~/Videos/SampleSite/Sample_movie_9KV9_160x120_thumb.jpg",
"FileType": "video/mp4",
"Type": "Video",
"Title": "Sample movie",
"Description": null,
"CreatedTime": "2013-09-21T13:08:07.1919911-07:00",
"UpdatedTime": null,
"MediaCategoryID": "01e1d77b-4ef0-433c-b79a-21f8ef0adcb2",
"IsPublic": false,
"IsFileLocked": null,
"Views": null,
"Width": 640,
"Height": 480,
"SiteName": "SampleSite",
"Duration": null,
"Order": null
}
]