How do save files using multi file upload

Aug 28, 2008 at 10:43 PM
Edited Aug 28, 2008 at 10:43 PM

I got it working up to the point you can add or remove the files. I would like to know how I can save the files shown in the listbox when upload button is clicked. I am working with vb.
Thanks in advance.
Jul 8, 2009 at 2:23 PM

Iterate the posted files, and save each one of them. I work with c#, so here's c# code:

foreach(HttpPostedFile file in myFileUploader.PostedFiles)

remember to change the filename into the uploaded filename (file.FileName), check it's size so it's not to large (file.FileLength) etc.