<< Back to Tvider API Documentation
chunkUpload
Uploads a media file in chunks. Each individual chunk of the file is uploaded using this method.
URL:
http://chunk-upload.tvider.com/api/chunkUpload/mediaId/{mediaId}/fileSize/{fileSize}/chunkOffset/{chunkOffset}/chunkLength/{chunkLength}
HTTP Method:
POST
Requires Authentication:
false
Parameters: (the complete URL will contain these parameters)
- mediaId - Id of the media file, that was returned when chunk upload was initialised. (see initChunkUpload Response)
- fileSize - Total size of the media file.
- chunkOffset - Offset from which current chunk has to be appended. (Always "0" to indicate start of file)
- chunkLength - Length of current chunk.
Usage notes:
Binary data of the file needs to be included in the body of the request.
- Complete URL:
- String url = "http://chunk-upload.tvider.com/api/chunkUpload/mediaId/" + mediaId + "/fileSize/" + fileSize + "/chunkOffset/" + chunkOffset + "/chunkLength/" + chunkLength ;
- Content-Type header:
Key: "Content-Type"
Value: contentMimeType (same as set in initChunkUpload)
Key: "Content-Length"
Value: chunkLength
Response:
- In case file is successfully uploaded:
{"result":
{"uploadStatus":"File is successfully uploaded.",
"uploadedFileLength":4409,
"mediaId":4122
},
"error":null,
"responseTime":"Response Time: 0.0 s"
}
<< Back to Tvider API Documentation
Comments (0)
You don't have permission to comment on this page.