Rank: Newbie
Groups: Member
Joined: 6/12/2008(UTC) Posts: 8
|
Hi Aurigma Team, We are using Image Uploader 5.5.6.0 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: Code:
<script type="text/javascript">
//<![CDATA[
function ImageUploader1_BeforeUpload() {
getImageUploader("ImageUploader1").setButtonStopText("Stop");
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 = "5.5.6.0";
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.
iu.writeHtml();
//]]>
</script>
Your early response will be highly appreciated. Regards, grouphutdev
|