Hello, i'm novice in Nodejs. I have a problem and I would like to have a little help. I want create a dynamique Upload repository but i'm blocked, i cant recover my different params in my back from the front. I tried to send my various parameters in the body first: ex (data: formdata, username: usernam, currenturl: currenturl) ... but nothing works. I try to send the different data via the formdata with append('file',file) and append('currentUrl',currenturl) but i didnt know how recover this data from my back.
thank you very much in advance.
you should try to post your code in a code block (not image) so it is easier for us to help you.
I believe your question is that you can't get the additional field you want to include with the upload.
I see that you're appending some info to the formData to be sent from frontend to backend. These information will be available at
req.bodyat your backend.