#9696: FileField raises unhandled exception when filename contains non-ascii
characters
-------------------------------------------+--------------------------------
Reporter: magarac | Owner: kmtracey
Status: new | Milestone: 1.1
Component: File uploads/storage | Version: 1.0
Resolution: | Keywords:
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Comment (by kmtracey):
For people who are experiencing this, have you (or the code you are using)
done something to override the default django.core.files.Storage
`get_valid_name` method? That routine strips all "non-filename-safe"
characters from the name, so I cannot easily recreate the exception you
are seeing by simply, say, trying to upload a file using admin and a model
that contains a simple !FileField. (Which indicates the 2nd part of #6009
had not been fixed, despite the testcases added, but that's a different
issue.) It would help if someone could provide a small reproducible
testcase that demonstrates this exception, as it involves more than just
uploading a file with unicode chars in the name using all normal defaults
in admin...when doing that, the unicode chars are stripped and the
exception does not happen.
--
Ticket URL: <http://code.djangoproject.com/ticket/9696#comment:8>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---