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

Notification

Icon
Error

Options
Go to last post Go to first unread
cfgeek  
#1 Posted : Tuesday, December 12, 2006 2:13:20 AM(UTC)
cfgeek

Rank: Member

Groups: Member
Joined: 12/12/2006(UTC)
Posts: 4

We are deploying ImageUploader4dual. We had previously been using using ImageUploader3.
We are experiencing a problem when browsing to a folder with lots of image and using the select all button (with CheckFilesBySelectAllButton true) The uploader throws an error pop-up for each image after MaxFileCount.

Code:
<script type="text/javascript">
//<![CDATA[

var iu = new ImageUploaderWriter("ImageUploader", 760, 400);
iu.addParam("LicenseKey", "blah");
iu.activeXControlEnabled = true;
iu.activeXControlCodeBase = "scripts/ImageUploader4.cab";
iu.activeXControlVersion = "4,0,63,0";

iu.javaAppletEnabled = false;
iu.javaAppletCodeBase = "scripts/";
iu.javaAppletCached = true;
iu.javaAppletVersion = "2.0.79.0";

iu.addParam("PaneLayout", "TwoPanes");
iu.addParam("FolderView", "Thumbnails");
iu.addParam("ShowDescriptions", "false");

iu.addParam("ShowDebugWindow", "false");
iu.addParam("AllowRotate", "true");
iu.addParam("BackgroundColor", "#ffffff");
iu.addParam("FileMask", "*.jpg;*.jpeg;");
iu.addParam("MaxFileCount", "60");
iu.addParam("MaxTotalFileSize", "");

iu.addParam("MessageUploadCompleteText","");
iu.addParam("MinImageWidth", "350");
iu.addParam("MinImageHeight", "250");
iu.addParam("ShowButtons", "true");
iu.addParam("ShowSubfolders", "false");
iu.addParam("AllowAutoRotate", "false");

iu.addParam("FilesPerOnePackageCount", "-1");
iu.addParam("MaxConnectionCount", "1");
iu.addParam("TimeOut", "0");// 0= infinate
iu.addParam("CheckFilesBySelectAllButton", "true");
iu.addParam("ShowContextMenu", "true");

iu.addParam("Action", "<cfoutput>#Application.photos_receiver_http_path#upload.aspx?RequestTimeout=3600&AccountID=#get_acct.account_id#</cfoutput>")

iu.addParam("RedirectUrl", "")

iu.writeHtml();
//]]>
</script>

Edited by user Tuesday, February 19, 2008 5:51:50 PM(UTC)  | Reason: Not specified

cfgeek  
#2 Posted : Tuesday, December 12, 2006 3:26:50 AM(UTC)
cfgeek

Rank: Member

Groups: Member
Joined: 12/12/2006(UTC)
Posts: 4

Further clarification: The problem is not with uploading at all. In the activeX version, the loop that adds checkmarks to images onClick of 'Select All' seems to loop through all the images not just 1 to MaxFileCount.
cfgeek  
#3 Posted : Wednesday, December 13, 2006 2:39:19 AM(UTC)
cfgeek

Rank: Member

Groups: Member
Joined: 12/12/2006(UTC)
Posts: 4

Yet More Clarification. I have a helper script that runs based on the Progress event of the imageuploader. When 'Select All' is clicked (with CheckFilesBySelectAllButton = true) the system checks images upto MaxFileCount and then throws an error. "The file *.jpg cannot be selected. Amount of files exceeds the limit (5 files)." Why is an error thrown for this predictable event? Is there a way to prevent ImageUploader from throwing this error.
Eugene Kosmin  
#4 Posted : Wednesday, December 13, 2006 7:56:45 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 402

Was thanked: 12 time(s) in 12 post(s)
Hello,

Sorry for a long delay.

This is normal behavior, if you are using Progress event handler. Progress event is fired each time when item mismatching.

Messages from this properties MessageMaxFileCountExceeded, MessageDimensionsAreTooSmall are shown only once and can be turned off by
Code:
iu.addParam("MessageMaxFileCountExceeded", "");
iu.addParam("MessageDimensionsAreTooSmall", "");

Edited by user Tuesday, February 19, 2008 5:53:48 PM(UTC)  | Reason: Not specified

Best regards,
Eugene Kosmin.
Aurigma Development Team
Users browsing this topic
Similar Topics
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.