You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constapp=express();constupload=multer({storage: memoryStorage(),preservePath: true});app.post("/upload-multiple",upload.array("files"),(res)=>{console.log(res.files[0].originalname)// here it shows only {file.name}.txt, not the full path.return"OK"})
Have not tried to replicate this using busboy yet, will do so if I manage to find time for the replication.
Is this behaviour expected?
The text was updated successfully, but these errors were encountered:
Currently, when passing
preservePath
as an option to multer, it seems that its not respected and the path were not preserved.The input provided is in the format Buffer, passed like so in the test file using
supertest
:The server is setup like so:
Have not tried to replicate this using
busboy
yet, will do so if I manage to find time for the replication.Is this behaviour expected?
The text was updated successfully, but these errors were encountered: