diff --git a/app/controllers/api/nextv1/contribution_page_controller.rb b/app/controllers/api/nextv1/contribution_page_controller.rb index cafc9ae27..eb320202c 100644 --- a/app/controllers/api/nextv1/contribution_page_controller.rb +++ b/app/controllers/api/nextv1/contribution_page_controller.rb @@ -125,7 +125,7 @@ def image_properties(data) io: File.open(original_image_path), filename: new_filename + extension + ".padded", # remove period from beginning of extension type - content_type: "image/#{extension}" + content_type: "image/#{extension.tr(".", "")}" } end