Home > MVC > How to upload a file using Jquery Ajax in ASP.NET CORE.



How to upload a file using Jquery Ajax in ASP.NET CORE.

In this article, we have described how to upload a file using Jquery Ajax in ASP.NET CORE with an example and sample code.


In this article, we have described how to upload a file using Jquery Ajax in ASP.NET CORE with an example and sample code. In this example, we have taken an HTML File upload control and a submit button. After clicking on the button, the image is saved in the provided file path. You can see the below screenshot.

 

Required Namespaces

We will need to use the following namespaces.

 

HTML

In the HTML we are using FileUplaod control and submit button for this activity and also using Jquery Ajax call in the script.

 

C#

We are getting image file from file upload control and save image in the provided file path.

 

Screenshot

How to file upload using Jquery Ajax in ASP.NET CORE.

Note: All contents are copyright of their authors.



Comments



Leave a Reply

Comment:*
Email ID:*


Name:*