SlickUpload
Welcome Guest Search | Active Topics | Log In | Register

File filter sample Options
mzlat
#1 Posted : Monday, February 04, 2008 2:44:10 PM
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.

mzak
#2 Posted : Monday, February 04, 2008 6:16:24 PM
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.

mzlat
#3 Posted : Tuesday, February 05, 2008 12:04:56 AM
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

mzlat
#4 Posted : Tuesday, February 05, 2008 2:48:14 AM
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.

ChrisHynes
#5 Posted : Friday, February 08, 2008 3:37:10 PM
Rank: Administration


Groups:

Joined: 7/7/2005
Posts: 1,586
Location: Scottsdale, AZ
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.