Hi
I´m also having trouble with the Java component regarding to the LoadUploadList method. On one page we upload thumbnails and save the uploadlist. Then few pages later we load all the upload lists that have been saved during current session (one at a time) and upload originals. This works fine with the ActiveX control but not with the java applet.
We are using the trial version of image uploader 5.1.10.0, for now, with full intention to upgrade to the full version, if we can get this to work :)
OS WinXP SP3, browser Firefox 2.0.0.15, JRE 1.6.0_05
function initializeiu(iuWidth, iuHeight, iuActiveXPath, iuJavaPath, iuPreviewThumbnailSize,
iuUploadThumbnailWidth, iuUploadThumbnailHeight, iuSessionID, iuFileMask,
iuAction, iuRedirectURL, iuSilentMode, iuProductName, iuUplList, iuLastList)
{
//Create JavaScript object that will embed Image Uploader to the page.
var iu = new ImageUploaderWriter("IUploader", iuWidth, iuHeight);
//For ActiveX control full path to CAB file (including file name) should be specified.
iu.activeXControlCodeBase = iuActiveXPath;
iu.activeXControlVersion = "5,1,10,0";
//For Java applet only path to directory with JAR files should be specified (without file name).
iu.javaAppletCodeBase = iuJavaPath;
iu.javaAppletCached = true;
iu.javaAppletVersion = "5.1.10.0";
IUControlType = iu.getControlType();
iu.addParam("GuiGraphicsVersion", "1");
iu.showNonemptyResponse = "off";
//Configure appearance.
iu.addParam("PaneLayout", "OnePane");
iu.addParam("AllowRotate", "false");
iu.addParam("ShowButtons", "false");
iu.addParam("PreviewThumbnailSize", iuPreviewThumbnailSize);
iu.addParam("ShowDescriptions", "false");
iu.addParam("SilentMode", iuSilentMode);
//iu.addParam("FolderView", "Details");
iu.addParam("UploadView", "Details");
//Configure thumbnail settings.
iu.addParam("UploadThumbnail1FitMode", "Off");
iu.addParam("UploadThumbnail1Width", iuUploadThumbnailWidth);
iu.addParam("UploadThumbnail1Height", iuUploadThumbnailHeight);
iu.addParam("UploadThumbnail1JpegQuality", "60");
iu.addParam("UploadThumbnail1CopyExif", "false");
iu.addParam("ExtractExif", "false");
//Configure behaviour
iu.addParam("UploadSourceFile", "false");
iu.addParam("UncheckUploadedFiles", "false");
iu.addParam("FileMask", iuFileMask);
iu.addParam("CacheGuiGraphics", "true");
iu.addEventListener("Progress", "iuprogress");
iu.addEventListener("Error", "ImageUploaderID_Error");
iu.addParam("MinFileSize", "15360");
//Configure upload settings.
iu.addParam("FilesPerOnePackageCount", "1");
iu.addParam("AutoRecoverMaxTriesCount", "3");
iu.addParam("AutoRecoverTimeOut", "5000");
iu.addParam("MaxConnectionCount", "1");
//Configure URL files are uploaded to.
iu.addParam("Action", iuAction);
//Configure URL where to redirect after upload.
iuredirURL = iuRedirectURL;
iu.addParam("RedirectUrl", iuRedirectURL);
//Localization
iulang_resources.addParams(iu);
iusessionid = iuSessionID;
iuproduct = iuProductName;
sUplList = iuUplList;
iLastListNr = iuLastList;
//iu.addEventListener("PackageBeforeUpload", "IUploader_PackageBeforeUpload");
iu.addEventListener("AfterUpload", "IUploader_AfterUpload");
iu.fullPageLoadListenerName = "fullPageLoad";
//Tell Image Uploader writer object to generate all necessary HTML code to embed
//Image Uploader to the page.
iu.addParam("LicenseKey", "NotPostingThisOne");
iu.writeHtml();
}
On fullPageLoad we start uploading the first uploadlist and on AfterUpload we reset the list that has been succesfully uploaded and start to upload the next one.
Edited by user Sunday, July 13, 2008 10:06:40 PM(UTC)
| Reason: Not specified