I made this in the backend, but dont know how to make 2 with axios, 1 that will save photos from input to public folder and 2nd that will save the path of the image in the folder text and title of the input to the MongoDBrouter.post("/upload", multerr.single("img"), (req, res) => {res.send(req.file.filename);});router.post("/slike", (req, res) => {Slike.create(req.body).then(result => {res.send("Done");});});
Submitted September 17, 2019 at 07:24PM by Drexx_B
No comments:
Post a Comment