Avatar of ITsolutionWizard
ITsolutionWizard
Flag for United States of America

asked on 

mvc, ajax upload with data

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("firstname").value,
           dataType: 'json',
           contentType: false,
ASP.NETDatabasesAJAX

Avatar of undefined
Last Comment
ITsolutionWizard

8/22/2022 - Mon