class FileUpload(object):
Undocumented
Method | get_header |
Return the value of a header within the mulripart part. |
Method | save |
Save file to disk or copy its content to an open file(-like) object. If destination is a directory, filename is added to the path. Existing files are not overwritten by default (IOError). |
Class Variable | content_length |
Undocumented |
Class Variable | content_type |
Undocumented |
Instance Variable | file |
Undocumented |
Instance Variable | headers |
Undocumented |
Instance Variable | name |
Undocumented |
Instance Variable | raw_filename |
Undocumented |
Method | __init__ |
Wrapper for file uploads. |
Method | _copy_file |
Undocumented |
Property | filename |
Name of the file on the client file system, but normalized to ensure file system compatibility. An empty filename is returned as 'empty'. |
filename
is added to the
path. Existing files are not overwritten by default (IOError).Parameters | |
destination | File path, directory or file(-like) object. |
overwrite | If True, replace existing files. (default: False) |
chunk_size | Bytes to read at a time. (default: 64kb) |
Name of the file on the client file system, but normalized to ensure file system compatibility. An empty filename is returned as 'empty'.
Only ASCII letters, digits, dashes, underscores and dots are allowed in the final filename. Accents are removed, if possible. Whitespace is replaced by a single dash. Leading or tailing dots or dashes are removed. The filename is limited to 255 characters.