Aurigma Forums
»
Legacy Products
»
Archive
»
Image Uploader
»
Is there a way to control a Max number of Images to Upload
Rank: Member
Groups: Member
Joined: 12/16/2003(UTC) Posts: 13
|
I wander if there is a simple way to do that. If I'm not wrong, I think there is no such a limit in Image Uploader 1.x, right ? I think it is feasable in the redirected URL in the section : Code://process received files
for($i=1;$i<=$ImageCount;$i++)
{
...
Maybe I can add a test before : Code:if ($ImageCount < $Max_allowed_number) {
//process received files
for($i=1;$i<=$ImageCount;$i++)
{
...
Any idea ? :-O Paul Edited by user Thursday, December 20, 2007 7:05:47 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
Image Uploader 1.x contains undocumented property MaxFileNumber. If you specify it to non-null, it will not allow to select more files than specified by this property. So you can just add:
and Image Uploader will be able to send only 10 files per time.
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
Sure, in addition to client-side checking of image count, you should always check it on server-side too. |
Best regards, Fedor Skvortsov
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
In Image Uploader 2.0 this property was renamed to MaxFileCount. Edited by user Tuesday, February 26, 2008 2:42:45 AM(UTC)
| Reason: Not specified |
Best regards, Fedor Skvortsov
|
|
|
|
Rank: Member
Groups: Member
Joined: 3/25/2004(UTC) Posts: 2
|
Hi,
...I was very happy when I found this usefull hidden parameter, but unfortunatelly it not works... :'( I'm using ver1.0
Sebacorp
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
Hello, Please try to upgrade to Image Uploader 2.0. You can use MaxFileCount property with it. Edited by user Tuesday, February 26, 2008 2:43:15 AM(UTC)
| Reason: Not specified |
Best regards, Fedor Skvortsov
|
|
|
|
Aurigma Forums
»
Legacy Products
»
Archive
»
Image Uploader
»
Is there a way to control a Max number of Images to Upload
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.