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'
  
  
Body Params
string
required

uploadItemId or UIRecordID of the upload item created in the Register upload assets section. Use this ID to identify the file chunk uploaded with this call as part of its parent asset.

int32

Starting position (in bytes) of the chunk. Must be a multiple of 131072 (for example, 131072, 262144, etc.).

int32

Ending position (in bytes) of the chunk (inclusive). Must be: (multiple of 131072) - 1 (for example, 131071, 262143...), except for the last chunk of the file. For the last chunk of the file, this value is the total asset length - 1.

int32

Size of the full asset in bytes.

string

Md5 hash of the chunk.

int32
Defaults to 1

1-base part number for cloud upload, required if using cloud buffer bucket.

file

File chunk.

Headers
string
required
Defaults to multipart-formdata

The multipart/form-data header parameter is required for this call.

Response

Language
Credentials
OAuth2
URL
Response
Choose an example:
application/json