Hi, I have an ASP.NET web application that uses jQuery on client side. On one of the web forms I have a bunch of controls to fill, and an upload control. User can run upload while filling other entries on the form. When user saves the form, all data including file is stored into database . The question is what to do with uploaded file while user fills the form? I have two possible solutions, but don't know which of them is more optimal
- Cache uploaded file, and later, while saving, retrieve it and store into database with all other data.
- Save file in temporary folder, and then read it.
What is the best solution for this? Thanks in advance.