i am looking for 1 simple solution or article that shows how we can upload multiple files with upload control (shows on the screen with ability to remove) and define one subject for them and then click on submit button for saving them in database table.
i have designed one table for my self like below but i have problem when i have multiple files.
when i was uploading just one file i had not any problem, for multiple files i have add another field "batchid" but i do not know how to get value for that.
ID BatchID file name subject content type data extension
1 1 test1.pdf for test1 application/pdf (binary) .pdf
2 1 test2.doc for test2 application/word (binary) .doc
3 2 test11111.pdf for test11111 application/pdf (binary) .pdf
4 3 test22222.doc for test22222 application/word (binary) .doc
masoud-s
Member
81 Points
196 Posts
uploading multiple files and save in database table
Dec 28, 2012 05:17 PM|LINK
i am looking for 1 simple solution or article that shows how we can upload multiple files with upload control (shows on the screen with ability to remove) and define one subject for them and then click on submit button for saving them in database table.
i have designed one table for my self like below but i have problem when i have multiple files.
when i was uploading just one file i had not any problem, for multiple files i have add another field "batchid" but i do not know how to get value for that.
PrashanthRed...
Member
559 Points
94 Posts
Re: uploading multiple files and save in database table
Dec 28, 2012 06:33 PM|LINK
Hi,
Follow below link
http://forums.asp.net/p/1831235/5098155.aspx/1?Re+upload+multiple+files+in+asp+net
Thanks,
Prashanth Reddy
masoud-s
Member
81 Points
196 Posts
Re: uploading multiple files and save in database table
Dec 29, 2012 04:06 AM|LINK
thanks , how should be design of my table.
in my aspx page
1- fill the subjectb text box
2-upload files
3- click on save button to save in database table.
i have to have 2 separate tables (tblfiles,tblsubject) or one table is enough.
bruce le
Member
298 Points
49 Posts
Re: uploading multiple files and save in database table
Jan 07, 2013 08:35 AM|LINK
Hi,
There are many good references for you,
File Upload with ASP.NET http://www.codeproject.com/Articles/1757/File-Upload-with-ASP-NET
Regards