{BUGFIX} Waiting for image upload

This commit is contained in:
Damien Broqua 2023-09-26 08:58:38 +02:00
parent bd6d35e754
commit 90adfe0b23

View file

@ -101,7 +101,7 @@ class Uploads extends Pages {
const mediumFileName = `medium_${uploadname}`; const mediumFileName = `medium_${uploadname}`;
const smallFileName = `small_${uploadname}`; const smallFileName = `small_${uploadname}`;
Promise.all([ await Promise.all([
copyFileSync(req.file.path, join(userUploadDir, originalFileName)), copyFileSync(req.file.path, join(userUploadDir, originalFileName)),
resizeImage( resizeImage(
req.file.path, req.file.path,