mirror of
https://github.com/django/django.git
synced 2025-11-02 04:48:33 +00:00
Fixes #8593 -- better handling of safe_join case sensitivity on windows. Thanks for the initial patch, ramiro.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16267 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
dab90dd429
commit
fcf7fbc68c
6 changed files with 71 additions and 14 deletions
|
|
@ -120,3 +120,12 @@ def file_upload_getlist_count(request):
|
|||
def file_upload_errors(request):
|
||||
request.upload_handlers.insert(0, ErroringUploadHandler())
|
||||
return file_upload_echo(request)
|
||||
|
||||
def file_upload_filename_case_view(request):
|
||||
"""
|
||||
Check adding the file to the database will preserve the filename case.
|
||||
"""
|
||||
file = request.FILES['file_field']
|
||||
obj = FileModel()
|
||||
obj.testfile.save(file.name, file)
|
||||
return HttpResponse('%d' % obj.pk)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue