Tuesday, 14 May 2019

[Help] Uploading FormData to NodeJS for file uploads & strings.

Hello, I've been trying to figure out how to upload a form that contains images and text through an Ajax request to the Node server. I can't figure out how to read formData() when it gets POST requested to the server.I need to get the image data, and text data seperately, then upload the images to AWS S3. and use the text information, along with image file name, to upload to my sql database.I have previously done this in PHP and now I need to do it in NodeJS, but I have no idea how to go about do it.I've tried looking at the "multer-s3" npm, but the documentation doesn't explain everything clearly.Any help would be appreciated thanks.

Submitted May 15, 2019 at 02:41AM by Official_CDcruz

No comments:

Post a Comment