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.
|
|
|
|
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. |
|
|
|
|
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.