-
Notifications
You must be signed in to change notification settings - Fork 13
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
AttributeError: 'FileUpload' object has no attribute 'seekable' #44
Comments
This appears to have regressed There was a new https://pypi.org/project/multipart/#history release (1.0.0) four days ago, which I don't think is a coincidence. |
So, the |
The new parser in multipart 1.0.0 requires CRLF rather than LF line endings: defnull/multipart#55 Fixes most of #74. The one remaining failure is a regression of #44 (lack of `.seekable()` on FileUpload objects).
If you pass self.request['file_field'] to zipfile.ZipFile() on Python 3.7, you will get this error:
Adding
seekable
to themethods
list inFileUpload.__init__
is enough to make the error go away.This error does not show up on Python 3.5. I haven't checked Python 3.6 yet.
The text was updated successfully, but these errors were encountered: