On Wed, Apr 1, 2009 at 5:12 AM, 夏恺 <xia...@gmail.com> wrote:

>
> Hi all!
>
> I wrote a model to hold files uploaded by users, it goes like this:
>
> [snip]
> and when I try to add an mp3 file with chinese filename through the
> admin interface, the files are not saved correctly, their names are
> changed to something like: '.mp3', '_.mp3', '__.mp3'.
>
> Has anyone any idea on how to solve this problem? Thanks!
>

This is ticket #10254: http://code.djangoproject.com/ticket/10254

It has a patch you can try.  I'm waiting on feedback as to whether there is
good reason to maintain the very restrictive set of allowed characters in
file names before checking that patch in.  I don't see the reason for it,
but it is code that has been in Django since forever so there may be some
reason for it that I don't understand.

Karen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to