Thank you. We got the new version and installed it.
It solved (partially) the performance issue when loading the pane that is displaying images. Some of our users report visible improvements; some still complain that it takes up to a minute or two to populate the pane.
But now we are facing a few other issues:
1. When I select files, checking them off in the “Files” pane, it takes a few seconds for check box to appear on the screen. My users uploads thousands of images daily and a few seconds delay for each checked image amounts to a considerable time loss for them.
2. Since my users upload a large number of images ( 1 million a month), they select 30 – 60 images at a time to upload.
Now here is another issue: when the “Upload” link is clicked, the screen appears that displays the upload progress. It takes only 10-20 sec for the control to send the images to the server, and then it takes from 2-4 minutes to wait until “Success” message appears. That is extremely slow and I afraid to put the control to production, as I foresee the storm of complains from my users.
Below is the code that is setting up the control. Please, advise, if I could do anything to improve the performance.
var iu = new ImageUploaderWriter("ImageUploader1", 810, 300);
//For ActiveX control full path to CAB file (including file name) should be specified.
iu.activeXControlCodeBase = "../ImageUploader4.cab";
iu.activeXControlVersion = "4,7,0,0";
//For Java applet only path to directory with JAR files should be specified (without file name).
iu.javaAppletJarFileName = "ImageUploader2.jar";
iu.javaAppletCodeBase = "../";
iu.javaAppletCached = true;
iu.javaAppletVersion = "2.7.0.0";
iu.showNonemptyResponse = "off";
//Configure License Keys
//iu.addParam("LicenseKey", "71050-49A8A-00000-08302-413E7;72050-49A8A-00000-076AD-199A9");
iu.addParam("LicenseKey","9704-8026-8890-6544-55871;9958-1629-3286-9353-99352");
//Configure file mask to display JPEG images only.
iu.addParam("FileMask", fileMask);
//Configure Image Uploader to rotate photos automatically
//according to the orientation stored in EXIF metadata.
iu.addParam("EnableAutoRotate", "true");
iu.addParam("FolderView", "List");
//Configure appearance and behaviour.
iu.addParam("PaneLayout", "TwoPanes");
iu.addParam("TreePaneWidth", "205");
iu.addParam("ShowButtons", "False");
iu.addParam("ShowDebugWindow", "true");
//Configure colors.
iu.addParam("BackgroundColor", "#ffffff");
iu.addParam("SplitterLineColor", "#0066cc");
//Configure border and splitter line style.
iu.addParam("FolderPaneBorderStyle", "None");
iu.addParam("UploadPaneBorderStyle", "None");
iu.addParam("TreePaneBorderStyle", "None");
iu.addParam("SplitterLineStyle", "Dot"); //NOT SUPPORTED IN JAVA
//Configure thumbnail settings.
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", uploadThumbnail1Width);
iu.addParam("UploadThumbnail1Height", uploadThumbnail1Height);
iu.addParam("UploadThumbnail1JpegQuality", "60");
//Configure user quota restriction. In real-life application these values should be
//loaded from server.
iu.addParam("MaxFileCount", maxFileCount);
iu.addParam("MaxTotalFileSize", maxTotalFileSize); // 50 MB
//Configure upload settings.
iu.addParam("FilesPerOnePackageCount", filesPerOnePackageCount);
iu.addParam("AutoRecoverMaxTriesCount", "10");
iu.addParam("AutoRecoverTimeOut", "10000");
iu.addParam("MessageUploadCompleteText", "Upload complete. The documents will be processed by CEOI in 1 hour.");
var uploadURL = path + "?Action=Upload" //&DocType=" + DocID + "&DocTypeDesc=" + DocDesc;
var redirectURL= path + "?Action=Result" //&DocType=" + DocID + "&DocTypeDesc=" + DocDesc;
//Configure URL files are uploaded to.
iu.addParam("Action", uploadURL);
//Configure URL where to redirect after upload.
iu.addParam("RedirectUrl", redirectURL);
//Add event handlers.
iu.addEventListener("UploadFileCountChange", "ImageUploader_UploadFileCountChange");
iu.addEventListener("ViewChange", "ImageUploader_ViewChange");
iu.fullPageLoadListenerName = "fullPageLoad";
//Tell Image Uploader writer object to generate all necessary HTML code to embed
//Image Uploader to the page.
iu.writeHtml();
//]]>