Explorar o código

Fixed file extension issue

Toby Chui %!s(int64=3) %!d(string=hai) anos
pai
achega
62bca9a4a1
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;
     }