Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Add wrapper allowing for uploads of all sizes #214

Open
BastianZim opened this issue Aug 21, 2020 · 2 comments
Open

Feature request: Add wrapper allowing for uploads of all sizes #214

BastianZim opened this issue Aug 21, 2020 · 2 comments

Comments

@BastianZim
Copy link
Contributor

BastianZim commented Aug 21, 2020

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 BastianZim changed the title Feature request: Add wrapper allowing for uploads of arbitrary sizes Feature request: Add wrapper allowing for uploads of all sizes Aug 21, 2020
@greg-db
Copy link
Contributor

greg-db commented Aug 21, 2020

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.

@BastianZim
Copy link
Contributor Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants