Karen Tracey 写道: > On Wed, Apr 1, 2009 at 5:12 AM, 夏恺 <[email protected] > <mailto:[email protected]>> wrote: > > > Hi all! > > I wrote a model to hold files uploaded by users, it goes like this: > > > 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 > Thanks Karen!
Yeah, I cannot understand why they will substitute all those character out there too. Anyway, I removed that line from get_valid_filename in django/utils/text.py and my app is happily running now. However, I got that hack from this ticket: http://code.djangoproject.com/ticket/6009 which, I believe, is more instructive. Thank you again for your help! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" 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-users?hl=en -~----------~----~----~----~------~----~------~--~---

