While I've found numerous resources online discussing this topic, none of them seem to present a method that resonates with me.
My current setup involves a form with multiple inputs that are sent to the server upon clicking a "Submit" button. This data is transmitted through a json request using the conventional AngularJS controller/service, and then processed by my ExpressJS router before being stored in a MongoDB database.
I am looking to include an input for users to select an image file to upload. However, all the solutions I've come across online involve immediately copying the selected file to the server as soon as it's chosen - an approach that doesn't align with my requirements. Is there a way to delay the file upload until the user clicks the "Submit" button? If so, where can I find more information on how to achieve this?
Any help would be greatly appreciated.