upload a file with other information as separate requests to backend
I am building a backend which allows the user to upload a csv along with some other information.
Current approach: using a multipart form upload the file and the data together. This data is something like checkboxes which determine what has to be done with the csv file
Question: apparently the better approach is to upload the file first which sends a request to the backend service and when submit is clicked on the form another request is sent. I am not sure how the backend will look for this functionality. Can anybody guide me on this?
Leave an answer