-
Notifications
You must be signed in to change notification settings - Fork 42
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
Bypass chunked uploading if chunk size exceeds file size #262
Conversation
3607ecd
to
8098316
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea!
I'm debating about adding an explicit option to also bypass chunk uploading. Wdyt @mdellweg ? |
Then i would argue, that we'd need a force-chunks option, because large files only work as chunks. I wouldn't do either without anyone asking for it. |
|
||
def upload(self, file: IO[bytes], chunk_size: int = 1000000, check_exists: bool = True) -> Any: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're not using check_exists=False
anywhere and maintaining it was making the code more and more complex.
cd2d888
to
a8c8a03
Compare
27b08e2
to
bc80a40
Compare
[noissue]