Posts by Leandro Costa • 11 points
1 post
-
0
votes0
answers39
viewsQ: How can I validate the multer so that it does not save the image in the Storage if the database validation returns false?
const multer = require('multer'); const path = require('path'); const crypto = require('crypto'); const aws = require('aws-sdk') const multerS3 = require('multer-s3'); const s3 =…