Allow webp
This commit is contained in:
@@ -74,7 +74,7 @@ define(['dialogHelper', 'connectionManager', 'dom', 'loading', 'scrollHelper', '
|
||||
return false;
|
||||
}
|
||||
|
||||
if (file.type !== "image/png" && file.type !== "image/x-png" && file.type !== "image/jpeg") {
|
||||
if (file.type !== "image/png" && file.type !== "image/x-png" && file.type !== "image/jpeg" && file.type !== "image/webp") {
|
||||
require(['toast'], function (toast) {
|
||||
toast(globalize.translate('MessageImageFileTypeAllowed'));
|
||||
});
|
||||
@@ -185,4 +185,4 @@ define(['dialogHelper', 'connectionManager', 'dom', 'loading', 'scrollHelper', '
|
||||
});
|
||||
}
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user