POST api/MediaObjects/UploadPhotos
Allows to upload single or multiple photo files (.jpg, .gif, .png, .zip) into chosen folder/category.
Allows to upload single or multiple photo files (.jpg, .gif, .png, .zip) into chosen folder/category.
Accept: application/json Content-Type: multipart/form-data; boundary="5f477176-5ead-4af1-85c0-b09345f9a0f3" --5f477176-5ead-4af1-85c0-b09345f9a0f3 Content-Type: text/plain; charset=utf-8 Content-Disposition: form-data; name=CategoryName Pictures --5f477176-5ead-4af1-85c0-b09345f9a0f3 Content-Type: text/plain; charset=utf-8 Content-Disposition: form-data; name=ImageWidth 800 --5f477176-5ead-4af1-85c0-b09345f9a0f3 Content-Type: text/plain; charset=utf-8 Content-Disposition: form-data; name=ImageHeight 600 --5f477176-5ead-4af1-85c0-b09345f9a0f3 Content-Type: text/plain; charset=utf-8 Content-Disposition: form-data; name=ThumbWidth 160 --5f477176-5ead-4af1-85c0-b09345f9a0f3 Content-Type: text/plain; charset=utf-8 Content-Disposition: form-data; name=ThumbHeight 120 --5f477176-5ead-4af1-85c0-b09345f9a0f3 Content-Type: text/plain; charset=utf-8 Content-Disposition: form-data; name=IsHidden false --5f477176-5ead-4af1-85c0-b09345f9a0f3 Content-Disposition: attachment; filename=moon_light.jpg { file bytes here } --5f477176-5ead-4af1-85c0-b09345f9a0f3
[ { "MediaID": "9064f738-0f52-4283-95c3-d011332e2f22", "FilePath": "~/Photos/SampleSite/Pictures/moon_light_DS_800x600.jpg", "ThumbnailFilePath": "~/Photos/SampleSite/Pictures/moon_light_DS_800x600_105x79_thumb_S.jpg", "FileType": "image/jpeg", "Type": "Photo", "Title": null, "Description": null, "CreatedTime": "2013-09-21T13:08:09.1531033-07:00", "UpdatedTime": null, "MediaCategoryID": "e77e3cc8-73be-4a93-8626-17f39b028573", "IsPublic": false, "IsFileLocked": null, "Views": null, "Width": 800, "Height": 600, "SiteName": "SampleSite", "Duration": null, "Order": null } ]