From 88e162c56c933a114aae64ab75a15ee3bffa8529 Mon Sep 17 00:00:00 2001 From: Alex Cottner Date: Tue, 15 Oct 2024 06:43:05 -1000 Subject: [PATCH] Removed code that no longer applies with gzip removed --- src/kinto_attachment/utils.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/kinto_attachment/utils.py b/src/kinto_attachment/utils.py index 3cf2eb3..edba264 100644 --- a/src/kinto_attachment/utils.py +++ b/src/kinto_attachment/utils.py @@ -164,7 +164,6 @@ def save_file(request, content, folder=None, keep_link=True, replace=False): _, extension = os.path.splitext(filename) mimetype = overriden_mimetypes.get(extension, content.type) - original = None save_options = { "folder": folder, "randomize": randomize, @@ -187,8 +186,6 @@ def save_file(request, content, folder=None, keep_link=True, replace=False): "mimetype": mimetype, "size": size, } - if original is not None: - attachment["original"] = original if keep_link: # Store link between record and attachment (for later deletion).