node.js – Access to Express uploads folder
I have a problem with Express. I made a file uploading system with backend of Express and Multer.
I can send file from front end to backend completely but my problem is saving data.
How can I save the data?
The first way is saving file as a base64 data in database but this isn’t a good way, because reading base64 file is very slow.
The second way is saving file in Node.js project uploads folder.
I can upload file in this folder but how can I read that? My backend URL is like this: example.com/api/product/all.
What is uploaded file URL?
Read more here: Source link