Ver Fonte

Fixed file extension issue

Toby Chui há 3 anos atrás
pai
commit
62bca9a4a1
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      web/Photo/backend/listFolder.js

+ 1 - 0
web/Photo/backend/listFolder.js

@@ -6,6 +6,7 @@ function getExt(filename){
 
 function isImage(filename){
     var ext = getExt(filename);
+    ext = ext.toLowerCase();
     if (ext == "png" || ext == "jpg" || ext == "jpeg" || ext == "webp"){
         return true;
     }