Change filename when using express/multer
问题 I'm having trouble uploading a pdf, when I upload it (I'm using ng-file-upload ) the file json that reachs express.js is: { fieldname: 'file', originalname: 'db.pdf', encoding: '7bit', mimetype: 'application/pdf', destination: './client/public/docs/transactions/', filename: '8a3fe7cb7369d9cffa8e17b162ec3d6b', path: 'client\\public\\docs\\transactions\\8a3fe7cb7369d9cffa8e17b162ec3d6b', size: 9179145 } I'd like to change the name to a property that I send from angular to express, here's all