change image_type

This commit is contained in:
sylor_huang@126.com
2020-06-05 11:39:18 +08:00
parent b1cfc42217
commit 4fe404708a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ module RepositoriesHelper
end
def download_type(str)
default_type = %w(xlsx xls ppt pptx pdf zip 7z rar exe pdb obj idb)
default_type = %w(xlsx xls ppt pptx pdf zip 7z rar exe pdb obj idb png jpg gif tif psd svg)
default_type.include?(str&.downcase)
end