Explorar el Código

Change file format for gallery images.

Lee Morgan hace 4 años
padre
commit
dcaaa93339
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      controllers/gallery.js

+ 1 - 1
controllers/gallery.js

@@ -35,7 +35,7 @@ module.exports = {
                 });
 
                 let handleImage = (fileData)=>{
-                    let fileString = `/galleryImages/${createId(25)}.jpg`;
+                    let fileString = `/galleryImages/${createId(25)}.webp`;
                     fileData.mv(`${__dirname}/..${fileString}`);
                     gallery.images.push(fileString)
                 }