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?

, user184725 4 years 2020-03-24T04:51:18-05:00 0 Answers 100 views 0

Leave an answer