MultiFileUpload Control Upload Path & No MultiFile Selection?

Jan 21, 2009 at 1:26 PM
I recently performed a drag-n-drop of the MetaBuilders MultiFileUpload control. I have 2 questions concerning its abilities:

1. How do I instruct the control as to where the upload directory is?

2. I cannot select more than 1 file in my browser (IE7)?
Jul 8, 2009 at 1:19 PM

Regarding upload:

Iterate the HttpPostedFile array that you get by:

HttpPostedFiles[] postedFiles = myMetaBuildersMultiFileUploader.PostedFiles:

foreach(HttpPostedFile file in postedFiles){

//do stuff, for example put posted file name into database

//save the file to server

file.SaveAs("d:\files\filenameOfYourChoise.jpg");

}

Of course, u need to change the filename into the filename of the posted file (file.FileName), but don't forget to remove everything except the name: IE will give u the path + filename,
for example: "c:\my documents\myImage.jpg".

Regarding selecting more than one file:

I got that issue when I tried to put the fileuploader into an update panel. Remove that (if that's the case)

 

Regards, Henxon