mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
@@ -11,7 +11,7 @@ class QuotaUploadHandler(FileUploadHandler):
|
||||
(5MB) is uploaded.
|
||||
"""
|
||||
|
||||
QUOTA = 5 * 2**20 # 5 MB
|
||||
QUOTA = 5 * 2 ** 20 # 5 MB
|
||||
|
||||
def __init__(self, request=None):
|
||||
super(QuotaUploadHandler, self).__init__(request)
|
||||
@@ -26,9 +26,11 @@ class QuotaUploadHandler(FileUploadHandler):
|
||||
def file_complete(self, file_size):
|
||||
return None
|
||||
|
||||
|
||||
class CustomUploadError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class ErroringUploadHandler(FileUploadHandler):
|
||||
"""A handler that raises an exception."""
|
||||
def receive_data_chunk(self, raw_data, start):
|
||||
|
||||
Reference in New Issue
Block a user