DEV Community

loading...

Discussion on: Build a simple app using Node JS and MySQL.

achowba profile image
Atauba Prince Author

I have no suggestions yet, but is it working?

Thread Thread
diegoeroque profile image
Diego Roque

Following the post of Al-mck....

I change the first line by :
fs.writeFile(public/assets/img/${image_name},uploadedFile.data, function (err) {...

and now it's working fine.

Best Rgs.