|
|
Rank: Newbie
Groups: Registered
Joined: 2/4/2008 Posts: 5
|
Hi,
I just downlowded the control and was testing it. I need to filter the files that are uploaded. I know that it can be done with JavaScript. Isn't this sample supposed to filter .exe file or any files specified inShouldHandleFile method.
Is there a description of what the samples are supposed to do.
Thank you.
|
|
|
Rank: Newbie
Groups: Registered
Joined: 12/5/2007 Posts: 6
|
mzlat,
Check out the test filter samples. That got me going.
The sample had - Return Not (Path.GetExtension(file.ClientName) = ".exe") in the IUploadFileFilter.ShouldHandleFile event as a sample to prevent uploading files with a ".exe" extension.
|
|
|
Rank: Newbie
Groups: Registered
Joined: 2/4/2008 Posts: 5
|
The sample doesn't work for me. I can still upload the .exe files.
Any ideas why?
Thanks
|
|
|
Rank: Newbie
Groups: Registered
Joined: 2/4/2008 Posts: 5
|
I've got the sample working. But know I have another question.
If I am uploading 2 or more than files and one of them throws an exception, the upload is
canceled for all of them. Is there a way that only the file with wrong parameters to stop but to continue for the good files.
Thank you.
|
|
|
Rank: Administration

Groups:
Joined: 7/7/2005 Posts: 1,586 Location: Scottsdale, AZ
|
|
|
|
|
Guest |