简体   繁体   中英

Bulk Image Upload from client machine to server in ASP.NET MVC

I have a bulk image upload functionality in my MVC4 application(with out file upload control). We have a Excel template with Image data such as (image name, description, alt text and image path where the image is located). The Excel file contains minimum 100 rows.

I have a page in my application where the user can upload this Excel. Once the user upload this excel file and clicks on submit button, all the image data (name, description, alt text) should insert to database and the image should be uploaded to the server from the path specified in Excel file.

Inserting the data to database part is working fine as i am reading the excel file using oledb to datatable and inserting to database.

The problem is uploading the image to the server from the path specified in Excel. The images are located in client machine. Can anyone please help me how i can achieve this bulk image upload functionality in ASP.Net MVC. I found many articles on bulk image upload but they are using file upload control which i don't want to use.

Many Thanks in Advance!!!

Here is the explanation to upload files into a ASP MVC application.

Upload files

I Suggest you to go Async File Uploads method with AJAX. You can find info here :

Async File Uploads

Take a look at this scripts

14 Best HTML5 jQuery File Upload Scripts

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM