summaryrefslogtreecommitdiff
path: root/fbin/file_storage/base.py
AgeCommit message (Collapse)AuthorFilesLines
2019-12-07Add max file size configurationJon Bergli Heier1-1/+10
This allows configuring max file sizes for both registered and anonymous users. For registered users the USER_FILE_SIZE_LIMIT is used, and ANONYMOUS_FILE_SIZE_LIMIT for anonymous users. If the size is not specified or None, the limit is not enforced. Setting the limit to 0 effectively disables uploads.
2019-08-17Fetch and store thumbnails via storage modulesJon Bergli Heier1-0/+9
This will allow us to remotely store thumbnails in case of S3. For S3 the thumb bucket is configurable to allow these to be stored separately. The S3 key for thumbnails does not conflict with files, so these can be stored in the same bucket if needed.
2019-07-24Add file storage modulesJon Bergli Heier1-0/+39
Allows for storing files other places than the local file system. Currently the local filesystem and S3 are supported.