add bmp to vaild img endings

This commit is contained in:
cracker0dks 2019-04-05 14:31:59 +02:00
parent 50307bb7ee
commit fac73b84ac

View File

@ -298,7 +298,7 @@ function uploadImgAndAddToWhiteboard(base64data) {
// verify if filename refers to an image
function isImageFileName(filename) {
var extension = filename.split(".")[filename.split(".").length - 1];
var known_extensions = ["png", "jpg", "jpeg", "gif", "tiff"];
var known_extensions = ["png", "jpg", "jpeg", "gif", "tiff", "bmp"];
return known_extensions.includes(extension.toLowerCase());
}