Open hadedeji10k opened 3 years ago
hello i have similar problem this create the file in folder, but the file is empty. this what i am write:
file.mv(./${filePath}
)
Can you share your code?
How you receive the file and how you intend saving the file?
i recive the file and path from client app. and save in dir in the server. the dir included in filePath
Is the image saving but it's null?
Or the image is not getting saved?
the file saved in the folder, but withot the content.
and in my server, i download a file from the repo in gitlab to this folder. when this heppens suddenly the content loads to the file...
Have you tried this on your local machine?
Better still, kindly share your current code to know where the issue lies
const {saveBufferToFile} = require("express-fileupload/lib/utilities");
saveBufferToFile(imageFile.data, uploadPath, function(err) {
if (err)
return res.status(500).send(err);
})
not working directories are created but still image is not moving to the directory
Originally posted by @asadalien in https://github.com/richardgirges/express-fileupload/issues/54#issuecomment-602161163