Ideally, for the photo upload I would like multer not to run the file upload alongside the upload to s3 but I have yet to figure out how to accomplish that. The only thing I have come across is being able to delete it out of the the file structure after the upload occurs using fs, but that doesn't seem the most efficient or best practice.
Screenshots / Code Snippets
I have included some snippets, but it might be easier to see on my pushed code.
I did a lot of searching to see if theres was a multer function other than upload.single('file') that would allow me to access req.file without having put the file into the fs but I couldn't find any.
I couldn't find any resources that were using multer not to upload a file to the file system, and the docs didn't seem to have that feature.
Description
Victoria Mertens
What do you want to happen?
Ideally, for the photo upload I would like multer not to run the file upload alongside the upload to s3 but I have yet to figure out how to accomplish that. The only thing I have come across is being able to delete it out of the the file structure after the upload occurs using fs, but that doesn't seem the most efficient or best practice.
Screenshots / Code Snippets
I have included some snippets, but it might be easier to see on my pushed code.
Link to the router: https://github.com/victoriamertens/happy-closet-solo-proj/blob/main/server/routes/upload.router.js
What did you try? Who did you ask?
I did a lot of searching to see if theres was a multer function other than upload.single('file') that would allow me to access req.file without having put the file into the fs but I couldn't find any.
I couldn't find any resources that were using multer not to upload a file to the file system, and the docs didn't seem to have that feature.
What branch is your code on? Did you git push?
(https://github.com/victoriamertens/happy-closet-solo-proj/blob/main/server/routes/upload.router.js)