nodejs multer file upload后如何管理此文件,不跟以前的冲突?# Programming - 葵花宝典
s*w
1 楼
最简单的情况, i can upload a file (say myFile.txt) using multer, and keep
its original name in the server side.
const upload = multer({ dest: `${UPLOAD_PATH}/` }); // multer configuration
别处另一个人也 upload a different file with same file name myFile.txt to the
same folder in server side. Will it overwrite the previous one ?
How do you normally manage this ? Thanks !
its original name in the server side.
const upload = multer({ dest: `${UPLOAD_PATH}/` }); // multer configuration
别处另一个人也 upload a different file with same file name myFile.txt to the
same folder in server side. Will it overwrite the previous one ?
How do you normally manage this ? Thanks !