POST api/MediaObjects/UploadAudio

Allows to upload single or multiple audio files (".mp3", ".wav", ".oga", ".3gpp") into chosen folder/category.

Request Information

Request body formats

application/json, text/json

Sample:
Accept: application/json
Content-Type: multipart/form-data; boundary="825b5700-12ba-4993-8c3d-fe19a8517189"

--825b5700-12ba-4993-8c3d-fe19a8517189
Content-Type: text/plain; charset=utf-8
Content-Disposition: form-data; name=CategoryName
Audio

--825b5700-12ba-4993-8c3d-fe19a8517189
Content-Type: text/plain; charset=utf-8
Content-Disposition: form-data; name=AudioName
Short beep sound

--825b5700-12ba-4993-8c3d-fe19a8517189
Content-Disposition: attachment; filename=SampleAudio.mp3
{ file bytes here }
--825b5700-12ba-4993-8c3d-fe19a8517189

Response Information

Response body formats

application/json, text/json

Sample:
 [
    {
        "MediaID": "546a9aec-c6bd-4346-9264-234f8e1e8dc2",
        "FilePath": "~/Audio/SampleSite/Short_beep_sound_IB9u.mp3",
        "ThumbnailFilePath": "~/Pictures/AudioThumb.jpg",
        "FileType": "audio/mpeg",
        "Type": "Audio",
        "Title": "Short beep sound",
        "Description": null,
        "CreatedTime": "2013-09-21T13:08:10.6021862-07:00",
        "UpdatedTime": null,
        "MediaCategoryID": "a3d87f5f-5dbb-4c66-9d54-6b2c01da6236",
        "IsPublic": false,
        "IsFileLocked": null,
        "Views": null,
        "Width": null,
        "Height": null,
        "SiteName": "SampleSite",
        "Duration": null,
        "Order": null
    }
]   
;
Need help? Contact Us