FileUploadHandler.new_file(field_name, file_name, content_type, content_length, charset, content_type_extra) [source]
Callback signaling that a new file upload is starting. This is called before any data has been fed to any upload handlers.
field_name is a string name of the file <input> field.
file_name is the unicode filename that was provided by the browser.
content_type is the MIME type provided by the browser – E.g. 'image/jpeg'.
content_length is the length of the image given by