add .tiff as supported image format
This commit is contained in:
parent
9eb9fbe3a5
commit
017d9be45a
3 changed files with 26 additions and 12 deletions
|
|
@ -8,8 +8,6 @@ pandora.ui.uploadDocumentDialog = function(options, callback) {
|
|||
existingFiles = [],
|
||||
uploadFiles = [],
|
||||
|
||||
supportedExtensions = ['gif', 'jpg', 'jpeg', 'pdf', 'png', 'webp', 'heic', 'heif', 'avif'],
|
||||
|
||||
filename,
|
||||
|
||||
ids = [],
|
||||
|
|
@ -72,7 +70,7 @@ pandora.ui.uploadDocumentDialog = function(options, callback) {
|
|||
});
|
||||
|
||||
if (!Ox.every(extensions, function(extension) {
|
||||
return Ox.contains(supportedExtensions, extension)
|
||||
return Ox.contains(pandora.documentExtensions, extension)
|
||||
})) {
|
||||
return errorDialog(
|
||||
Ox._('Supported file types are GIF, JPG, PNG and PDF.')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue