Undocumented
Method | __init__ |
Wrapper for file uploads. |
Method | get |
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, :attr:`filename` is added to the path. Existing files are not overwritten by default (IOError). |
Class Variable | content |
Undocumented |
Class Variable | content |
Undocumented |
Instance Variable | file |
Undocumented |
Instance Variable | headers |
Undocumented |
Instance Variable | name |
Undocumented |
Instance Variable | raw |
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'. |
Method | _copy |
Undocumented |
Save file to disk or copy its content to an open file(-like) object. If *destination* is a directory, :attr:`filename` is added to the path. Existing files are not overwritten by default (IOError). :param destination: File path, directory or file(-like) object. :param overwrite: If True, replace existing files. (default: False) :param 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.