From e0402862b01f701e322ce53e09a4f5b8f5a1b671 Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 5 Jun 2026 03:35:02 +0000 Subject: [PATCH] =?UTF-8?q?Restore=20JPG=E3=80=81PNG=E3=80=81BMP=20opening?= =?UTF-8?q?=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/announcements_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/announcements_controller.rb b/app/controllers/announcements_controller.rb index 8c1dfd8..aad0a0f 100644 --- a/app/controllers/announcements_controller.rb +++ b/app/controllers/announcements_controller.rb @@ -654,8 +654,7 @@ class AnnouncementsController < ApplicationController @path = file.file.path rescue "" @filename = @path.split("/").last @ext = @path.split("/").last.to_s.split(".").last - # if @ext == "png" || @ext == "jpg" || @ext == "bmp" || @ext == "pdf" - if @ext == "pdf" + if @ext == "png" || @ext == "jpg" || @ext == "bmp" || @ext == "pdf" render "archives/download_file.html",:layout=>false else if (current_site.accessibility_mode rescue false)