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

Notification

Icon
Error

Options
Go to last post Go to first unread
testtestest  
#1 Posted : Wednesday, May 20, 2009 9:04:51 AM(UTC)
testtestest

Rank: Newbie

Groups: Member
Joined: 5/21/2008(UTC)
Posts: 3

One of our users uploaded some image and the regular sized images worked fine but the large image came out as icons (the same image used when choosing the icon view in the preview pane). Our code is below:
Quote:

<script type="text/javascript">
//<![CDATA[
//Create JavaScript object that will embed Image Uploader to the page.
var iu = new ImageUploaderWriter("ImageUploader1", 920, 490);
iu.addParam("LicenseKey", "XXXX");
//For ActiveX control full path to CAB file (including file name) should be specified.
iu.activeXControlCodeBase = "ImageUploader5.cab";
iu.activeXControlVersion = "5,7,14,0";

//For Java applet only path to directory with JAR files should be specified (without file name).
iu.javaAppletJarFileName = "ImageUploader5.jar";
iu.javaAppletCodeBase = "./";
iu.javaAppletCached = true;
iu.javaAppletVersion = "5.7.14.0";

iu.showNonemptyResponse = "off";

//Configure appearance and behaviour.
iu.addParam("PaneLayout", "ThreePanes");
iu.addParam("TreePaneWidth", "250");
iu.addParam("ShowButtons", "False");
iu.addParam("ShowDebugWindow", "True");
iu.addParam("ShowDescriptions", "false");
iu.addParam("QualityMeterFormats", "High-Def Tour,1280,1024,1;Standard Tour,650,490,1;");

//Configure colors.
iu.addParam("BackgroundColor", "#DDECFE");
iu.addParam("SplitterLineColor", "#FFFFFF");

//Configure border and splitter line style.
iu.addParam("FolderPaneBorderStyle", "None"); //NOT SUPPORTED IN JAVA
iu.addParam("UploadPaneBorderStyle", "None"); //NOT SUPPORTED IN JAVA
iu.addParam("TreePaneBorderStyle", "None"); //NOT SUPPORTED IN JAVA
iu.addParam("SplitterLineStyle", "None"); //NOT SUPPORTED IN JAVA
iu.addParam("UploadSourceFile", "False");

//Configure thumbnail 1 settings.
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Height", "600");
iu.addParam("UploadThumbnail1width", "800");

iu.addParam("UploadThumbnail1JpegQuality", "70");
iu.addParam("UploadThumbnail1CopyExif", "true");
iu.addParam("UploadThumbnail1CompressionMode", "*.bmp,*.jpg,*.png=Jpeg;*.pdf=SourceFile;");

//Configure thumbnail 2 settings.
iu.addParam("UploadThumbnail2FitMode", "Fit");
iu.addParam("UploadThumbnail2Width", "120");
iu.addParam("UploadThumbnail2Height", "120");
iu.addParam("UploadThumbnail2JpegQuality", "50");
iu.addParam("UploadThumbnail2CopyExif", "true");

/* Configure thumbnail 3 settings. */
iu.addParam("UploadThumbnail3FitMode", "Height");
//iu.addParam("UploadThumbnail1Width", "600");
iu.addParam("UploadThumbnail3Height", "1800");
iu.addParam("UploadThumbnail3JpegQuality", "60");
iu.addParam("UploadThumbnail3ResizeQuality", "Medium");
iu.addParam("UploadThumbnail3CopyExif", "true");

// Set mins for image size
//iu.addParam("MinImageWidth", "600");
//iu.addParam("MinImageHeight", "400");

//iu.addParam("DimensionsAreTooSmallText", "Too small size");
//iu.addParam("MessageDimensionsAreTooSmallText", "Image size should be larger then [MinImageWidth]x[MinImageHeight]" + " for your Virtual Tour.");


//Configure user quota restriction. In real-life application these values should be

iu.addParam("FileMask", "*.jpeg;*.jpg;*.jpe;*.bmp;");

//Configure upload settings.
iu.addParam("FilesPerOnePackageCount", "1");
iu.addParam("AutoRecoverMaxTriesCount", "1");
iu.addParam("AutoRecoverTimeOut", "3000");

//Configure URL files are uploaded to.
iu.addParam("Action", "");
iu.addParam("AdditionalFormName", "Form1");
iu.addParam("AllowAutoRotate", "false");
iu.addParam("MaxConnectionCount", "1");


//Configure URL where to redirect after upload.
iu.addParam("RedirectUrl", "test");

//Add event handlers.
iu.addEventListener("BeforeUpload", "ImageUploader_BeforeUpload");
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();
//]]>
</script>
Dmitry  
#2 Posted : Wednesday, May 20, 2009 7:50:29 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

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

Thanks for your report. It is a known issue and it is fixed in the upcoming Image Uploader 6.
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
Guest
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.