-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Encoding of filename #35
Comments
It seems
|
@srkunze can you tell us which version you're using? |
@moggers87 We are using 0.4.3, cause we are using it at a Py2 / Py3 System. |
I no longer support Python 2. I suggest making a custom backend with whatever fixes you need and using that until you can migrate to a newer version of django-sendfile2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
in recents versions, backends.xsendfile.sendfile does not encode the given filename anymore and passes on the Unicode str. That's an issue with special characters like
/home/user/test/äüö.pdf
.Would it be possible to remove that if-condition?
In case you wonder why we do not pass bytes to
sendfile.sendfile
in the first place:sendfile.sendfile
usesguess_type(filename)
, which does not work with bytes.The text was updated successfully, but these errors were encountered: