file_name
This commit is contained in:
@@ -139,7 +139,7 @@ app.post("/upload/resources", upload.array("files"), (req, res) => {
|
||||
|
||||
console.log( onefile );
|
||||
|
||||
fs.rename(onefile.path, targetDir, function (err) {
|
||||
fs.rename(onefile.path, targetDir+"/"+onefile.file_name , function (err) {
|
||||
if (err) throw err
|
||||
console.log('Successfully renamed - '+onefile.path);
|
||||
console.log('Start::Database Registration!');
|
||||
|
||||
Reference in New Issue
Block a user