Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
dane  
#1 Posted : Tuesday, June 15, 2010 3:29:45 AM(UTC)
dane

Rank: Member

Groups: Member
Joined: 1/6/2010(UTC)
Posts: 15

This is more of a suggestion if it does not exist. I wasn't able to find it in the documents if it does. For a strongly integrated Ajax environment which sets many IU params on the fly, I wanted to be able to be able to set MaxFileCount to, say, -1, which would mean that photos can no longer be uploaded. I've already taken care of no longer letting the user upload more photos after a certain limit, but was wondering if MaxFileCount can moreover be set to such a number to prevent uploads--more out of curiousity. If it can't, it would be a good option to include.
Dmitry  
#2 Posted : Wednesday, June 16, 2010 2:35:13 AM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello Dane,

I see three ways to implement the desired functionality.

1. The easiest way is to set MaxFileSize property to 1. It will disable uploading all files of more then 1 byte size. So it will work in the most of cases.

2. More correct way is to use ImageUploader.BeforeUpload event. If you return false from handler of this event the upload process is stopped. This way you have a chance to check conditions whether uploading is allowed for specific user or not and disable it if it is required.

3. Hide standard buttons and implemet custom ones in HTML. This way you will be able to disable and enable them when it is needed.
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
Similar Topics
MaxFileCountExceeded Property (Discussions – ActiveX/Java Uploader)
by patter 7/12/2012 8:05:26 PM(UTC)
FileMask, setUploadThumbnai2FitMode, MaxFileCount all giving fatal errors (Discussions – ActiveX/Java Uploader)
by dannychambers 7/26/2010 6:06:16 PM(UTC)
Possible to Update "MaxFileCount" using Ajax? (Discussions – ActiveX/Java Uploader)
by tgc 10/28/2008 11:45:53 PM(UTC)
MaxFileCount error pop problem with CheckFilesBySelectAllButton (Discussions – ActiveX/Java Uploader)
by hmauderly 2/13/2008 7:03:57 PM(UTC)
MaxFileCount When set to "0".. (Discussions – ActiveX/Java Uploader)
by dayyanj 1/12/2008 11:19:04 PM(UTC)
Error between "MaxFileCount" and "SELECT ALL" (Image Uploader)
by StefanDi 5/28/2007 6:57:40 PM(UTC)
Redirect after MaxFileCount limit reached (Image Uploader)
by Richardcanoe 1/21/2007 7:07:47 PM(UTC)
MaxFileCount Problem (Discussions – ActiveX/Java Uploader)
by cfgeek 12/12/2006 2:13:20 AM(UTC)
MaxFileCount problem on ImageUploader 4.0 (Image Uploader)
by eg_hch 7/6/2006 12:44:55 PM(UTC)
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.