mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-25 14:50:29 +00:00
Merge branch '7.0'
This commit is contained in:
@@ -36,6 +36,7 @@ export const enableResetEncryptedRepoPassword = window.app.pageOptions.enableRes
|
||||
export const isEmailConfigured = window.app.pageOptions.isEmailConfigured === 'True';
|
||||
export const enableUploadFolder = window.app.pageOptions.enableUploadFolder === 'True';
|
||||
export const enableResumableFileUpload = window.app.pageOptions.enableResumableFileUpload === 'True';
|
||||
export const resumableUploadFileBlockSize = window.app.pageOptions.resumableUploadFileBlockSize;
|
||||
export const storages = window.app.pageOptions.storages; // storage backends
|
||||
export const enableRepoSnapshotLabel = window.app.pageOptions.enableRepoSnapshotLabel;
|
||||
export const shareLinkPasswordMinLength = window.app.pageOptions.shareLinkPasswordMinLength;
|
||||
|
@@ -96,7 +96,7 @@ export const Utils = {
|
||||
return false;
|
||||
}
|
||||
var file_ext = filename.substr(filename.lastIndexOf('.') + 1).toLowerCase();
|
||||
var image_exts = ['gif', 'jpeg', 'jpg', 'png', 'ico', 'bmp'];
|
||||
var image_exts = ['gif', 'jpeg', 'jpg', 'png', 'ico', 'bmp', 'tif', 'tiff'];
|
||||
if (image_exts.indexOf(file_ext) != -1) {
|
||||
return true;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user