Closed iamchathu closed 8 years ago
Use the key function to append the file-extension from file.originalname
. Be careful though! The client can send any extension that they want, always validate your files...
Used path.extname to achieve it. Thank you @LinusU !
How to save uploaded file with extension like .jpg or *.png
Thank you.