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

#upload with an actual File object unexpectedly closes the file #98

Open
contentfree opened this issue Nov 19, 2019 · 0 comments
Open

Comments

@contentfree
Copy link

In the case where you use #upload with an open file handle (instead of a string path), the file is unexpectedly closed in #write_next_chunk(file) after reading the last chunk. The closing is important when a File has been opened (when given a path), but is detrimental to further usage of an open File.

For now the workaround is to check if the file is closed after the upload and reopen it.

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

No branches or pull requests

1 participant