core.files.uploadhandler.FileUploadHandler.handle_raw_input()

FileUploadHandler.handle_raw_input(input_data, META, content_length, boundary, encoding) [source]

Allows the handler to completely override the parsing of the raw HTTP input.

input_data is a file-like object that supports read()-ing.

META is the same object as request.META.

content_length is the length of the data in input_data. Don’t read more than content_length bytes from input_data.

boundary is the MIME boundary for this request.

encoding is the encoding of the request.

Return None if you want upload handling to continue, or a tuple of (POST, FILES) if you want to return the new data structures suitable for the request directly.

doc_Django
2016-10-09 18:34:51
Comments
Leave a Comment

Please login to continue.