Channel Admin Controller

Upload Multiple Files to Folder

Path: /api/channels/{channelRef}/folders/{folderName}/files/batch

Method: POST

Example Http Request

POST /api/channels/localhost/folders/public/files/batch HTTP/1.1
Content-Type: multipart/form-data; boundary=6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
X-WAL: 0x1371699df678b0d92025bc20fdb91fdef8ce9444
X-SIG: 0x1234567890
X-MES: Message to sign
Host: localhost:8080

--6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
Content-Disposition: form-data; name=files; filename=test1.vrm
Content-Type: application/octet-stream

test content 1
--6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
Content-Disposition: form-data; name=files; filename=test2.vrm
Content-Type: application/octet-stream

test content 2
--6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm--

Example Http Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 2

{}

Example Curl Request

$ curl 'http://localhost:8080/api/channels/localhost/folders/public/files/batch' -i -X POST \
    -H 'Content-Type: multipart/form-data' \
    -H 'X-WAL: 0x1371699df678b0d92025bc20fdb91fdef8ce9444' \
    -H 'X-SIG: 0x1234567890' \
    -H 'X-MES: Message to sign' \
    -F 'files=@test1.vrm;type=application/octet-stream' \
    -F 'files=@test2.vrm;type=application/octet-stream'

Channel Admin Controller