-
Notifications
You must be signed in to change notification settings - Fork 7
Upload Memory Error #11
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
Comments
Chunked uploading is not the best answer here. Requests can do bidirectional streaming of large files, THAT is the answer. http://docs.python-requests.org/en/master/user/advanced/#streaming-uploads |
I like @btimby 's answer. Although, I am curious to know if SmartFile's API accepts streamed uploads. We should investigate this further before trying to implement. |
The idea of the streamed upload, is the file isn't read into memory on the client side before it is uploaded. Instead, it's read in small chunks. On the server side, it looks like one big upload. |
When trying to upload a file that has more bytes than a string can hold, I get an
OverflowError
.I believe moving towards chunked uploading would be beneficial to looking past this problem.
The text was updated successfully, but these errors were encountered: