def file_upload_quota_broken(request):
 response = file_upload_echo(request)
 request.upload_handlers.insert(0, QuotaUploadHandler())
 return response

def file_upload_quota_broken ( request ) : response = file_upload_echo ( request ) request . upload_handlers . insert ( 0 , QuotaUploadHandler ( ) ) return response
you cant change handlers after reading files; this view shouldnt work .