1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-23 12:27:48 +00:00

preview heic img (#6700)

* preview heic img

* update

* Update requirements.txt

* Update utils.py

* Update requirements.txt

* update

---------

Co-authored-by: 孙永强 <11704063+s-yongqiang@user.noreply.gitee.com>
Co-authored-by: r350178982 <32759763+r350178982@users.noreply.github.com>
This commit is contained in:
awu0403
2024-09-12 07:51:52 +08:00
committed by GitHub
parent 19a32a8e2a
commit 86f720bff5
3 changed files with 9 additions and 1 deletions

View File

@@ -130,7 +130,7 @@ export const Utils = {
return false;
}
var file_ext = filename.substr(filename.lastIndexOf('.') + 1).toLowerCase();
var image_exts = ['gif', 'jpeg', 'jpg', 'png', 'ico', 'bmp', 'tif', 'tiff', 'jfif'];
var image_exts = ['gif', 'jpeg', 'jpg', 'png', 'ico', 'bmp', 'tif', 'tiff', 'jfif', 'heic'];
if (image_exts.indexOf(file_ext) != -1) {
return true;
} else {