https://stackoverflow.com/questions/32470906/how-to-upload-a-image-in-asp-net-mvc-using-ajax-request
I use above codes to upload a file. but if I want to add a parameter from <input type="text" id="firstname"> to ajax like below. How can I do that? Basically, I upload the image but I also want to update the database behind.
type: "POST",
url: '/Home/Upload',
data: formData, document.getelementid("fir
stname").v
alue,
dataType: 'json',
contentType: false,