def file_upload_filename_case_view(request):
 file = request.FILES['file_field']
 obj = FileModel()
 obj.testfile.save(file.name, file)
 return HttpResponse(('%d' % obj.pk))

def file_upload_filename_case_view ( request ) : file = request . FILES [ 'file_field' ] obj = FileModel ( ) obj . testfile . save ( file . name , file ) return HttpResponse ( ( '%d' % obj . pk ) )
check adding the file to the database will preserve the filename case .