From a74100ef07210b7877aaf216113644713975d3b5 Mon Sep 17 00:00:00 2001 From: Jennifer Byrne Date: Mon, 4 Nov 2024 10:18:14 -0600 Subject: [PATCH] remove .padded from the filename --- app/controllers/api/nextv1/contribution_page_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/nextv1/contribution_page_controller.rb b/app/controllers/api/nextv1/contribution_page_controller.rb index eb320202c..b41fdaa2b 100644 --- a/app/controllers/api/nextv1/contribution_page_controller.rb +++ b/app/controllers/api/nextv1/contribution_page_controller.rb @@ -123,7 +123,7 @@ def image_properties(data) new_filename = generate_filename(source_image_path: original_image_path) { io: File.open(original_image_path), - filename: new_filename + extension + ".padded", + filename: new_filename + extension, # remove period from beginning of extension type content_type: "image/#{extension.tr(".", "")}" }