Click here to Skip to main content
15,893,190 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI
I need some help on uploading multiple files at once, i can upload one at a time and save in database. How would i go about uploading multiple files? Like in the case of attachments, upload file1, file2, file3 and so on instead of selecting one file at a time and waiting for it to upload and save as an attachment and then going onto the next one. I save the filename, contenttype,contentlenght and date to the database, if im uploading many files at once, how do i save them in my database? At the moment im using the Asp.net upload control to browse, select a file and then i click a button that once clicked uploads that file to my uploads folder and saves the info above in the database.
Posted

Check this from MSDN: Uploading Files in ASP.NET 2.0[^]
Scroll down to the section - "Uploading Multiple Files at the Same Time"

Hope this helps!
 
Share this answer
 
Best option is to go 3 party control for it. There are lots of 3 party controls by which you can do this job.

If you don't want to use 3 party control then you have to create your own control.

I suggest you go look at Generic handler file, i think they can do the job for you, but not sure of it.

Hope this help.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900