From e52a152b16e51c329a281f144864d846bcacdde6 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Fri, 6 Dec 2019 21:23:46 +0100 Subject: Default Storage.get_file thumb to False Usually we want the file data, not the thumbnail. --- fbin/file_storage/s3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fbin') 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'] -- cgit v1.2.3