awaiting more infohelp wanted
Repository metrics
- Stars
- (11,136 stars)
- PR merge metrics
- (Avg merge 9d 11h) (7 merged PRs in 30d)
Description
Hello, I am uploading files dynamically (different folders based on need):
// Configure multer
let upload = multer({
storage: multer.diskStorage({
destination: (req, file, callback) => {
let homefolder = req.body.folder;
callback(null, homefolder);
},
filename: (req, file, callback) => {
let filename = req.body.filename;
callback(null, filename);
}
})
});
router.post('/upload', upload.single('file'), ctrlFileUploader.upload);
This is working well, the issue I have noticed is that multer doesn't write the file there exactly, it kinda waits for the file to be uploaded completely and then starts writing the file to the folder. Is this normal or I am doing something wrong?