summaryrefslogtreecommitdiffstats
path: root/activities/views
diff options
context:
space:
mode:
authorTyler Kennedy2022-12-14 01:26:19 -0500
committerGitHub2022-12-13 23:26:19 -0700
commit0d8b7db2729d94338824c748901637c625c103b0 (patch)
treea431b9990deb11d742dc57e9ccc8b4f77ea6f75a /activities/views
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 'activities/views')
-rw-r--r--activities/views/compose.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/activities/views/compose.py b/activities/views/compose.py
index e9092f7..8e3c96d 100644
--- a/activities/views/compose.py
+++ b/activities/views/compose.py
@@ -216,6 +216,7 @@ class ImageUpload(FormView):
name=form.cleaned_data.get("description"),
state=PostAttachmentStates.fetched,
)
+
attachment.file.save(
main_file.name,
main_file,