summaryrefslogtreecommitdiffstats
path: root/takahe
diff options
context:
space:
mode:
authorTyler Kennedy2022-12-14 01:26:19 -0500
committerGitHub2022-12-13 23:26:19 -0700
commit0d8b7db2729d94338824c748901637c625c103b0 (patch)
treea431b9990deb11d742dc57e9ccc8b4f77ea6f75a /takahe
parent3404b155de0c804fd957fd23ded4e241fe885288 (diff)
downloadtakahe-0d8b7db2729d94338824c748901637c625c103b0.tar.gz
takahe-0d8b7db2729d94338824c748901637c625c103b0.tar.bz2
takahe-0d8b7db2729d94338824c748901637c625c103b0.zip
Set the content type and disposition of webp files uploaded to S3
Diffstat (limited to 'takahe')
-rw-r--r--takahe/settings.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/takahe/settings.py b/takahe/settings.py
index a65367a..552dc76 100644
--- a/takahe/settings.py
+++ b/takahe/settings.py
@@ -346,7 +346,8 @@ if SETUP.MEDIA_BACKEND:
GS_BUCKET_NAME = parsed.hostname
GS_QUERYSTRING_AUTH = False
elif parsed.scheme == "s3":
- DEFAULT_FILE_STORAGE = "storages.backends.s3boto3.S3Boto3Storage"
+ # DEFAULT_FILE_STORAGE = "storages.backends.s3boto3.S3Boto3Storage"
+ DEFAULT_FILE_STORAGE = "core.uploads.TakaheS3Storage"
AWS_STORAGE_BUCKET_NAME = parsed.path.lstrip("/")
AWS_QUERYSTRING_AUTH = False
AWS_DEFAULT_ACL = "public-read"