mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Fixed #11030: fixed file uploads on non-utf8 filesystem encoding. Thanks, Honza Kral.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10693 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
fb9ac5729d
commit
a59095af24
2 changed files with 4 additions and 4 deletions
|
@ -70,13 +70,13 @@ ValueError: The 'normal' attribute has no file associated with it.
|
|||
[]
|
||||
>>> files.sort()
|
||||
>>> files
|
||||
[u'default.txt', u'django_test.txt']
|
||||
['default.txt', 'django_test.txt']
|
||||
|
||||
>>> obj1.save()
|
||||
>>> dirs, files = temp_storage.listdir('tests')
|
||||
>>> files.sort()
|
||||
>>> files
|
||||
[u'assignment.txt', u'default.txt', u'django_test.txt']
|
||||
['assignment.txt', 'default.txt', 'django_test.txt']
|
||||
|
||||
# Files can be read in a little at a time, if necessary.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue