API¶
Core¶
File types¶
This module handle image operations (thumbnailing, resizing...)
Backends¶
-
class
flask_fs.backends.
BaseBackend
(name, config)[source]¶ Abstract class to implement backend.
-
open
(filename, *args, **kwargs)[source]¶ Open a file given its filename relative to the storage root
-
save
(file_or_wfs, filename, overwrite=False)[source]¶ Save a file-like object or a werkzeug.FileStorage with the specified filename.
Parameters: - storage – The file or the storage to be saved.
- filename – The destination in the storage.
- overwrite – if False, raise an exception if file exists in storage
Raises: FileExists – when file exists and overwrite is False
-
Mongo¶
Errors¶
These are all errors used accross this extensions.
This exception is raised when trying to upload an unauthorized file type.
Internals¶
These are internal classes or helpers. Most of the time you shouldn’t have to deal directly with them.