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

File Filter for multiple upload Options
mzlat
#1 Posted : Tuesday, February 05, 2008 11:24:26 AM
Rank: Newbie

Groups: Registered

Joined: 2/4/2008
Posts: 5

Hi Chris!

If I am uploading 2 or more files and one of them throws an exception, the upload is canceled for all files.

Is there a way that only the file with wrong parameters stops but the good files are uploaded.

Thank you.

ChrisHynes
#2 Posted : Friday, February 08, 2008 3:36:34 PM
Rank: Administration


Groups:

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

The problem is that the upload is a sequential stream -- all files must be processed. There is no way to skip files. So, the UploadFileFilter's purpose is to allow fast rejectection of uploads with invalid files before they even complete. If you want to allow some files and deny some files, let them all upload and then run code on the UploadedFile collection to determine which files to process. This will be added as a SlickUpload feature in the upcoming v4, but isn't currently in place.

Another thing you can do to reduce the impact of this is validation and extension filtering in javascript, by adding code to the UploadHandler.aspx page. Again, this is a planned feature for SlickUpload v4.

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.