I’m not sure how to save a file type to the server I’m on in node. Here is my goal:
There will an array of objects that I will need to access in the backend, and save files in those objects based on certain conditions so I’d like to avoid using forms, or a middleware that only allows a file upload.
I tried finding different solutions online but none of them seemed to fit what I was looking for.