Rank: Advanced Member
Groups: Member
Joined: 10/26/2006(UTC) Posts: 30
|
Thanks Alex for your answer. The first tests were with an old windows 98. Since it didn't work we decided to do a windowsupdate and we have installed all the critical stuff (18Mb total), but still no success. Here is the configuration code: Code://Create JavaScript object that will embed Image Uploader to the page.
var iu = new ImageUploaderWriter("ImageUploader1", 900, 500);
//For ActiveX control full path to CAB file (including file name) should be specified.
iu.activeXControlCodeBase = "../Drivers/ImageUploader4.cab";
iu.activeXControlVersion = "4,0,63,0";
//Unlock
iu.addParam("LicenseKey", "XXXX-XXXX-XXXX-XXXX;ZZZZ-ZZZZ-ZZZZ-ZZZZ");
//For Java applet only path to directory with JAR files should be specified (without file name).
iu.javaAppletCodeBase = "../Drivers/";
iu.javaAppletCached = true;
iu.javaAppletVersion = "2.0.79.0";
iu.showNonemptyResponse = "off";
//Configure appearance and behaviour.
iu.addParam("PaneLayout", "ThreePanes");
iu.addParam("FolderPaneHeight", "250");
iu.addParam("ShowDebugWindow", "true");
iu.addParam("ShowDescriptions", "false");
iu.addParam("BackgroundColor", "#ffffff");
iu.addParam("AllowMultipleRotate", "true");
iu.addParam("AllowMultipleRemove", "true");
iu.addParam("ButtonDeleteFilesText", "");
//Configure Image Uploader to rotate photos automatically
//according to the orientation stored in EXIF metadata.
iu.addParam("EnableAutoRotate", "true");
iu.addParam("ButtonSendImageFormat", "width=100; height=50;");
//Append the form with total file size to the upload.
//iu.addParam("AdditionalFormName", "Form1");
//Configure file mask to upload JPEG images only.
iu.addParam("FileMask", "*.jpeg;*.jpg;*.jpe;");
//Set image size restrictions.
iu.addParam("MinImageWidth", "120");
iu.addParam("MinImageHeight", "120");
//Exclude the source file from upload because only
//resized versions of the photo will be sent.
iu.addParam("UploadSourceFile", "false");
//Configure upload settings.
iu.addParam("Action", "MyPage.aspx");
iu.addParam("FilesPerOnePackageCount", "1");
iu.addParam("AutoRecoverMaxTriesCount", "10");
iu.addParam("AutoRecoverTimeOut", "10000");
//Allow upload not only files, but also entire folders.
//iu.addParam("AllowFolderUpload", "true");
//Configure settings of the optimized image. Optimized image
//is resized to 1200x960 with JPEG quality = 60 and EXIF
//metadata is preserved.
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "1280");
iu.addParam("UploadThumbnail1Height", "960");
iu.addParam("UploadThumbnail1JpegQuality", "60");
iu.addParam("UploadThumbnail1CopyExif", "true");
iu.addParam("UploadThumbnail1CompressOversizedOnly", "true");
//Configure user quota restriction. In real-life application these values should be
//loaded from server.
//iu.addParam("MaxFileCount", "10");
//iu.addParam("MaxTotalFileSize", "5242880");
var maxNb = document.getElementById("<%=maxNbH.ClientID %>");
var maxMb = document.getElementById("<%=maxMbH.ClientID %>");
iu.addParam("MaxFileCount", maxNb.value);
iu.addParam("MaxTotalFileSize", maxMb.value);
//Configure URL files are uploaded to.
iu.addParam("Action", "MyPage.aspx");
//Add event handlers.
iu.addEventListener("UploadFileCountChange", "ImageUploader_UploadFileCountChange");
iu.addEventListener("Progress", "ImageUploader_Progress");
iu.addEventListener("ViewChange", "ImageUploader_ViewChange");
iu.fullPageLoadListenerName = "fullPageLoad";
Edited by user Tuesday, February 19, 2008 6:30:55 PM(UTC)
| Reason: Not specified
|