summaryrefslogtreecommitdiff
path: root/fbin
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2019-12-06 21:23:46 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2019-12-06 21:23:46 +0100
commite52a152b16e51c329a281f144864d846bcacdde6 (patch)
tree30bda24cfbee4ac3e63a6fc6a2f7d5553f1d0f3f /fbin
parent386c0f4bc68b05157cb3ee80872ea6daa26478ad (diff)
Default Storage.get_file thumb to False
Usually we want the file data, not the thumbnail.
Diffstat (limited to 'fbin')
-rw-r--r--fbin/file_storage/s3.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fbin/file_storage/s3.py b/fbin/file_storage/s3.py
index 9d0bb56..9e68186 100644
--- a/fbin/file_storage/s3.py
+++ b/fbin/file_storage/s3.py
@@ -31,7 +31,7 @@ class Storage(BaseStorage):
size = obj.size
return self.add_file(file_hash, uploaded_file.filename, size, user, ip)
- def get_file(self, f, thumb=True):
+ def get_file(self, f, thumb=False):
key = self.get_object_key(f, thumb=thumb)
if thumb:
bucket = self.app.config['S3_THUMB_BUCKET']