|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /lib64/python2.7/site-packages/django/core/files/ |
Upload File : |
�
r�\c @ s7 d Z d d l m Z d d l m Z d d l m Z d d l m Z m Z d d l
m Z d d l m
Z
d d d
d d d
d d g Z d e f d � � YZ e d e f d � � Y� Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d � Z d S( uH
Base file upload handler classes, and the built-in concrete subclasses
i����( t unicode_literals( t BytesIO( t settings( t TemporaryUploadedFilet InMemoryUploadedFile( t python_2_unicode_compatible( t import_by_pathu UploadFileExceptionu
StopUploadu SkipFileu FileUploadHandleru TemporaryFileUploadHandleru MemoryFileUploadHandleru load_handleru StopFutureHandlerst UploadFileExceptionc B s e Z d Z RS( u6
Any error having to do with uploading files.
( t __name__t
__module__t __doc__( ( ( sA /tmp/pip-install-XxeQeY/django/django/core/files/uploadhandler.pyR s t
StopUploadc B s# e Z d Z e d � Z d � Z RS( u=
This exception is raised when an upload must abort.
c C s
| | _ d S( u�
If ``connection_reset`` is ``True``, Django knows will halt the upload
without consuming the rest of the upload. This will cause the browser to
show a "connection reset" error.
N( t connection_reset( t selfR ( ( sA /tmp/pip-install-XxeQeY/django/django/core/files/uploadhandler.pyt __init__ s c C s | j r
d Sd Sd S( Nu StopUpload: Halt current upload.u, StopUpload: Consume request data, then halt.( R ( R
( ( sA /tmp/pip-install-XxeQeY/django/django/core/files/uploadhandler.pyt __str__% s ( R R R
t FalseR R ( ( ( sA /tmp/pip-install-XxeQeY/django/django/core/files/uploadhandler.pyR s t SkipFilec B s e Z d Z RS( uX
This exception is raised by an upload handler that wants to skip a given file.
( R R R
( ( ( sA /tmp/pip-install-XxeQeY/django/django/core/files/uploadhandler.pyR + s t StopFutureHandlersc B s e Z d Z RS( u�
Upload handers that have handled a file and do not want future handlers to
run should raise this exception instead of returning None.
( R R R
( ( ( sA /tmp/pip-install-XxeQeY/django/django/core/files/uploadhandler.pyR 1 s t FileUploadHandlerc B sW e Z d Z d d
Z d d � Z d d � Z d d � Z d � Z d � Z d � Z
RS( u3
Base class for streaming upload handlers.
i@ i i
c C s1 d | _ d | _ d | _ d | _ | | _ d S( N( t Nonet file_namet content_typet content_lengtht charsett request( R
R ( ( sA /tmp/pip-install-XxeQeY/django/django/core/files/uploadhandler.pyR >