| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

chunkUpload

Page history last edited by Shaheer Ahmed 14 years, 3 months ago

<< 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:

  • POST request:

               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)

  • Content-Length header:

               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.