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

UnsupportedOperation using ZipExtFile #3

Open
rhunwicks opened this issue Mar 5, 2019 · 1 comment
Open

UnsupportedOperation using ZipExtFile #3

rhunwicks opened this issue Mar 5, 2019 · 1 comment

Comments

@rhunwicks
Copy link
Contributor

Mayan-EDMS uncompresses ZipFile archives and then loads the files directly. This causes an UnsupportedOperation error when Django tries to calculate the file size using seek() and tell(). The ZipExtFile instance that is passed to Django has a seek() method, but calling it raises UnsupportedOperation.

We need to fallback to calculating size and reading the content without using seek().

@jsonn
Copy link
Contributor

jsonn commented Aug 17, 2020

This was fixed by ff15abc?

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

2 participants