1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #6009 -- Added regression tests to show that uploading non-ASCII

filenames now works properly. Patch from Leah Culver.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7987 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick
2008-07-19 18:47:59 +00:00
parent a103786971
commit 344383284c
3 changed files with 26 additions and 0 deletions

View File

@@ -1480,6 +1480,10 @@ not request.POST.
>>> f.is_valid()
True
>>> f = FileForm(data={}, files={'file1': SimpleUploadedFile('我隻氣墊船裝滿晒鱔.txt', 'मेरी मँडराने वाली नाव सर्पमीनों से भरी ह')}, auto_id=False)
>>> print f
<tr><th>File1:</th><td><input type="file" name="file1" /></td></tr>
# Basic form processing in a view #############################################
>>> from django.template import Template, Context