From 023f6ac05c46dad70f6d7ff85c01b8e4533ac749 Mon Sep 17 00:00:00 2001 From: Remilia Da Costa Faro Date: Mon, 21 Apr 2025 00:19:19 +0200 Subject: [PATCH] Fixed bugs on file upload --- images/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/images/views.py b/images/views.py index 35cd876..d57ca59 100644 --- a/images/views.py +++ b/images/views.py @@ -79,7 +79,7 @@ def upload(request): ) bucket.upload_fileobj( - file, variant.backblaze_filepath, ContentType={"ContentType": content_type} + file, variant.backblaze_filepath, ExtraArgs={"ContentType": content_type} ) image.create_variant_tasks(variant) @@ -134,7 +134,7 @@ def upload_variant(request): content_type = "binary/octet-stream" bucket.upload_fileobj( - file, variant.backblaze_filepath, ContentType={"ContentType": content_type} + file, variant.backblaze_filepath, ExtraArgs={"ContentType": content_type} ) variant.available = True