Step 4: Upload each asset chunk

Use one API call per asset chunk to upload all chunks to Orange Logic

Use this call to upload each asset chunk. You need to know each chunk’s starting and ending position to use this call, as well as the total length of the asset the chunk is part of.

This page shows the POST method, but you can also use GET.

Response

Nothing is returned.

Example calls

These example calls upload two sequential asset chunks.

Example call 1: An asset's first chunk
  
 curl -X 'POST' \
  'https://mangovations.orangelogic.com/webapi/mediafile/import/upload/item/26_v1/2RBKM47GUMWY?start=0&end=26214399&totalLength=85997454' \
  -H 'accept: */*' \
  -H 'Content-Type: multipart/form-data' \
  -F 'data=@xaa'
  
  

Example call 2: An asset's second chunk
  
 curl -X 'POST' \
  'https://mangovations.orangelogic.com/webapi/mediafile/import/upload/item/26_v1/2RBKM47GUMWY?start=26214400&end=52428799&totalLength=85997454' \
  -H 'accept: */*' \
  -H 'Content-Type: multipart/form-data' \
  -F 'data=@xab'
  
  
Language
Credentials
OAuth2
URL