diff options
author | Tyler Kennedy | 2022-12-14 01:26:19 -0500 |
---|---|---|
committer | GitHub | 2022-12-13 23:26:19 -0700 |
commit | 0d8b7db2729d94338824c748901637c625c103b0 (patch) | |
tree | a431b9990deb11d742dc57e9ccc8b4f77ea6f75a /activities | |
parent | 3404b155de0c804fd957fd23ded4e241fe885288 (diff) | |
download | takahe-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')
-rw-r--r-- | activities/views/compose.py | 1 |
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, |