dropbox-sdk-python icon indicating copy to clipboard operation
dropbox-sdk-python copied to clipboard

Feature request: Add wrapper allowing for uploads of all sizes

Open BastianZim opened this issue 5 years ago • 2 comments

Hi,

I was wondering if DropBox would consider adding a class or function that would wrap files_upload_session_start(), files_upload_session_append_v2() and files_upload_session_finish().

The command would basically be a wrapper around the solution provided by @greg-db here.

Using the commands individually is not too much of a problem but that would speed up development significantly, as the above statements could basically be condensed down to:

with open(file_path, "rb") as f:
    dbx.files_managed_upload(f, target)

One example would be AWS' Boto3 which has the method upload_fileobj() that can automatically perform multipart uploads if the object size is bigger than the API allows.

Thanks!

BastianZim avatar Aug 21 '20 15:08 BastianZim

Thanks for writing this up! I can't make any promises as to if/when this would be implemented, but I'll send this along to the team.

greg-db avatar Aug 21 '20 15:08 greg-db

Thank you!

BastianZim avatar Aug 21 '20 15:08 BastianZim