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



Go to last post Go to first unread
#1 Posted : Wednesday, October 15, 2008 8:11:03 PM(UTC)

Rank: Newbie

Groups: Member
Joined: 6/12/2008(UTC)
Posts: 8

Hi Aurigma Team,

We are using Image Uploader Dual version and using Concurrent Method to upload the images.

While uploading in the images in Internet Explorer, three concurrent connections are created and upload the images concurrently but in Mozilla Firefox only one image gets uploaded at a time and also the progress bar shows uploading of a single image.

It effects the uploading time.

Please see the below code and suggest the solution:


<script type="text/javascript">


function ImageUploader1_BeforeUpload() {


needToHideButtonStop = false;


function ImageUploader1_Progress(Status, Progress, ValueMax, Value, StatusText) {

//Stop button should be displayed only during the upload process. If the upload 

//completed (either successfully or not), the button should be hidden.

needToHideButtonStop = (Status=="COMPLETE" || Status=="ERROR" || Status=="CANCEL");


////Create JavaScript object that will embed Image Uploader to the page.

var iu = new ImageUploaderWriter("ImageUploader1", 700, 500);

//For ActiveX control full path to CAB file (including file name) should be specified.

iu.activeXControlCodeBase = "ImageUploader5.cab";

iu.activeXControlVersion = "5,5,6,0";

//For Java applet only path to directory with JAR files should be specified (without file name).

iu.javaAppletJarFileName = "ImageUploader5.jar";

iu.javaAppletCodeBase = "jarfile/";

iu.javaAppletCached = true;

iu.javaAppletVersion = "";

iu.showNonemptyResponse = "off";

iu.addParam("ButtonSendText", "Upload");

//Configure appearance.

iu.addParam("PaneLayout", "ThreePanes");

iu.addParam("FolderView", "Thumbnails");

iu.addParam("TreePaneWidth", "160");

iu.addParam("FolderPaneHeight", "200");

//iu.addParam("PaneLayout", "OnePane");

iu.addParam("ShowDebugWindow", "true");

iu.addParam("AllowRotate", "true");

iu.addParam("AllowAutoRotate", "true");

iu.addParam("AllowMultipleRotate", "true");

iu.addParam("BackgroundColor", "#eff7fa");

iu.addParam("ShowDescriptions", "false");

//iu.addParam("CheckFilesBySelectAllButton", "true");

iu.addParam("UploadView", "AdvancedDetails");

iu.addParam("AdvancedDetailsPreviewThumbnailSize", "100");

//Configure License Keys

iu.addParam("LicenseKey", '<%=ConfigurationManager.AppSettings["AurigmaKey"].ToString()%>'); 

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

//Configure thumbnail settings.

iu.addParam("UploadThumbnail1FitMode", "Fit");

iu.addParam("UploadThumbnail1Width", "120");

iu.addParam("UploadThumbnail1Height", "120");

iu.addParam("UploadThumbnail1JpegQuality", "60");

//Configure upload settings.

iu.addParam("FilesPerOnePackageCount", "1");

iu.addParam("AutoRecoverMaxTriesCount", "5");

iu.addParam("AutoRecoverTimeOut", "10000");

iu.addParam("MaxConnectionCount", "3");

//Configure URL files are uploaded to.

iu.addParam("Action", "uploaded.aspx?handlerId=1&groupName=<%=clsGroup.groupName%>&userId=<%=clsUsers.CurrentUserID%>&albumName=<%=clsPhotoGallery.CurrentAlbumName%>;uploaded.aspx?handlerId=2&groupName=<%=clsGroup.groupName%>&userId=<%=clsUsers.CurrentUserID%>&albumName=<%=clsPhotoGallery.CurrentAlbumName%>;uploaded.aspx?handlerId=3&groupName=<%=clsGroup.groupName%>&userId=<%=clsUsers.CurrentUserID%>&albumName=<%=clsPhotoGallery.CurrentAlbumName%>")

//Configure URL where to redirect after upload.

iu.addParam("RedirectUrl", "ViewPhotoAlbum.aspx")

//Concurrent upload feature and advanced details view are not supported in Java version yet. 

//This way we need to get Java version working in standard mode (sequential upload with standard

//progress dialog).

if (iu.getControlType() == "ActiveX"){

iu.addParam("SilentMode", "true");

var needToHideButtonStop = false;

iu.addEventListener("BeforeUpload", "ImageUploader1_BeforeUpload");

iu.addEventListener("Progress", "ImageUploader1_Progress");

//Use timer to check whether to hide the Stop button. It allows to avoid the button flickering.

window.setInterval("if (needToHideButtonStop) {getImageUploader('ImageUploader1').setButtonStopText(''); needToHideButtonStop = false;}", 500);


//Tell Image Uploader writer object to generate all necessary HTML code to embed 

//Image Uploader to the page.




Your early response will be highly appreciated.

#2 Posted : Wednesday, October 15, 2008 8:45:15 PM(UTC)

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 876

Thanks: 2 times
Was thanked: 27 time(s) in 27 post(s)
This feature is implemented in ActiveX version only. We do not plan to add this feature in Java version in the nearest time.
Users browsing this topic
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.