mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user