kunalvarma05/onedrive-client

Multipart upload support

dustinbolton opened this issue · 1 comments

Does this library support multipart uploads? I need to be able to break up uploading across multiple page loads for large files. OneDrive supports this as seen here: https://dev.onedrive.com/items/upload_post.htm

I need this because my app runs on users' shared hosting accounts which tend to have unmodifiable maximum execution time limits and slow speeds so I need to be able to break it up. I do this with Amazon S3, Dropbox, Google Drive, Rackspace, etc within my app but I'd like to use this library to add OneDrive support but this is critical for my use case.

The SDK uses multipart body to upload the file. See Line 722 in Client.php. However, according to your use case, that involves chunking a large file into smaller parts and uploading it through multiple requests involves a separate endpoint: Uploading large files on OneDrive. This method can be used to create a session to upload a large file by splitting it into chunks, which is not supported at the moment.