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

Notification

Icon
Error

Options
Go to last post Go to first unread
mtabraiz  
#1 Posted : Monday, September 3, 2007 10:53:10 PM(UTC)
mtabraiz

Rank: Member

Groups: Member
Joined: 9/3/2007(UTC)
Posts: 3

hi,
We have been using Aurgima Image Uploader for quite some time... but recently it has stopped working with firefox 2.0. and gives the following error "Image uploader encountered some problem. if you see this message, contact web master". attached below is the screen shot of the same error.

I am listing java console output and page javascript listing.
Please help.

Thanks

Tabraiz

[Image was removed]

//////////////////////////////// Java console output ///////////////////////////////////////

Code:
ImageUploader version: 2.0.79
Current document URL: http://localhost/PixStory/DesktopModules/AlbumCreator/UploadClientImage.aspx
Reading cookies
Cookies: dbx-postmeta=grabit:0+|1-|2-|3-|4-|5+&advancedstuff:0+|1+|2+
Reading referer
Referer: http://localhost/PixStory/DesktopModules/AlbumCreator/UploadClientImage.aspx
Exception occured at IUMain.goToFolder() with message: access denied (java.io.FilePermission MyPictures read)
Reading additional form content
Uploading to http://localhost/PixStory/DesktopModules/AlbumCreator/uploading.aspx
Setting HTTP params: Host=localhost
Starting upload
Sep 4, 2007 6:16:35 PM org.apache.commons.httpclient.HttpMethodBase readResponse
INFO: Discarding unexpected response: HTTP/1.1 100 Continue
Sep 4, 2007 6:16:38 PM org.apache.commons.httpclient.HttpMethodDirector isRedirectNeeded
INFO: Redirect requested but followRedirects is disabled
Status =[302]
UploadException occured
Uploading to http://localhost/PixStory/DesktopModules/AlbumCreator/uploading.aspx
Setting HTTP params: Host=localhost
Starting upload
Sep 4, 2007 6:16:49 PM org.apache.commons.httpclient.HttpMethodBase readResponse
INFO: Discarding unexpected response: HTTP/1.1 100 Continue
Sep 4, 2007 6:16:52 PM org.apache.commons.httpclient.HttpMethodDirector isRedirectNeeded
INFO: Redirect requested but followRedirects is disabled
Status =[302]
UploadException occured
###Error occured###
Status=[ERROR]
Progress=[0]
ValueMax=[0]
Value=[4]
[ErrorPage]
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="http://localhost/PixStory/admin/Security/Logoff.aspx">here</a>.</h2>
</body></html>

[EndOfErrorPage]



///////////////////////////// page javascript //////////////////////////////////



Code:
//<![CDATA[	
var imageUploader1 = null;

function formatFileSize(value){
	if (value < 1024){
		return value + " b";
	}
	else if (value < 1048576){
		return Math.round(value / 1024) + " kb";
	}
	else{
		return Math.round(value / 10485.76) / 100 + " mb";
	}
}

function fullPageLoad(){	
     //alert ("Full Page Upload");
	imageUploader1=getImageUploader("ImageUploader1");
	getImageUploader("ImageUploader1").GoToFolder("MyPictures");
	//document.getElementById("spanMaxFileCount").innerHTML = imageUploader1.getMaxFileCount();
	//document.getElementById("spanMaxTotalFileSize").innerHTML = formatFileSize(parseInt(imageUploader1.getMaxTotalFileSize()));
}

function ImageUploader_UploadFileCountChange(){
     //alert ("ImageUploader_UploadFileCountChange");
	if (imageUploader1){	
	    var imgWidth = parseInt(imageUploader1.getUploadFileCount()) / parseInt(imageUploader1.getMaxFileCount()) * 132;
		imgWidth = parseInt(imageUploader1.getTotalFileSize()) / parseInt(imageUploader1.getMaxTotalFileSize()) * 132;
	}
}

function ImageUploader_ViewChange(){
    //alert ("ImageUploader_ViewChange");
	if (imageUploader1){
		document.getElementById("selectView").selectedIndex = parseInt(imageUploader1.getFolderView());
	}
}

function selectView_change(){
    //alert ("selectView_change");
	if (imageUploader1){
		var selectView = document.getElementById("selectView");
		imageUploader1.setFolderView(parseInt(selectView.options[selectView.selectedIndex].value));
	}
	

function ImageUploaderID_Progress (Status, Progress, ValueMax, Value, StatusText) {
    //Max width of progress bar 
    var progresBarWidth = 200;
    //var progresBar = document.getElementById("ProgressBar");
    //var progresBarText = document.getElementById("ProgressBarText");    
    alert ("Before START")
    switch(Status)
    {
        case "START":
            //Show progress bar
//            progresBar.style.display = "block";
//            progresBarText.style.display = "block";
//            //Set width of progress bar to 0px
//            progresBar.style.width = "0px";
            alert ("START")
            break;
        case "PREPARE":
            //Show preparing progress 
//            progresBarText.innerText = Status + " " + Math.round(Value/ValueMax*100) + "%";
//            //Set width of progress bar 
//            progresBar.style.width = Math.round(Value/ValueMax*progresBarWidth) + "px";
            alert ("PREPARE")
            break;
        case "UPLOAD":
            //Show uploading progress 
//            progresBarText.innerText = Status + " " + Math.round(Value/ValueMax*100) + "%";
//            //Set width of progress bar 
//            progresBar.style.width = Math.round(Value/ValueMax*progresBarWidth) + "px";
            alert ("Upload")
            break;
        case "COMPLETE":
            //Hide progress bar
//            progresBar.style.display = "none";
//            progresBarText.style.display = "none";
            //Show custom message
            alert("All images were successfully uploaded.");
            //Redirect to galery.asp page when upload process is completed
            //window.location.replace('gallery.asp');            
            break;
        case "CANCEL":
            //Hide progress bar
//            progresBar.style.display = "none";
//            progresBarText.style.display = "none";
            //Show custom message
            alert("Uploading were canceled.");            
            break;
        case "ERROR":
            //Hide progress bar            
//            progresBar.style.display = "none";
//            progresBarText.style.display = "none";    
            //Show custom message
            alert("Error arrised during uploading.");    
            break;
    }  
 }
}
//]]>
	    function HitUploadButton(value)
	    {
           var val = getImageUploader("ImageUploader1").getUploadFileCount();

            if (val == '0')
            {
                alert ("Please select file(s) to upload");
                return false;
            }
            else
            {
                imageUploader1.Send();
                //alert ("if u come here i will luv u aurigma");
                return true;
            }
	    }

</script>








                    <script type="text/javascript">
                    //<![CDATA[
                    //Create JavaScript object that will embed Image Uploader to the page.

                    //    var activeXClassId="880A66FC-DFCB-4950-87DC-0B49BA501517";
                    //    var activeXProgId="Aurigma.ImageUploader.4";

                        var iu = new ImageUploaderWriter("ImageUploader1", 878, 248);
                      
                    //    var img1 = document.getElementById("_ctl0_middleContent_Image1") ;
                    //    img1.src = "../../images/white.jpg";
                    //    img1.height = "1";

                        iu.activeXControlCodeBase = "ImageUploader4.cab";
                        iu.activeXControlVersion = "4,0,63,0";

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

                        iu.showNonemptyResponse = "off";

                        //Configure appearance and behaviour.
                        iu.addParam("PaneLayout", "TwoPanes");
                        iu.addParam("ThumbnailHorizontalSpacing", "25");
                        iu.addParam("ShowButtons", "False");
                        iu.addParam("ShowDebugWindow", "true");
                        iu.addParam("TreePaneWidth", "235");
                        iu.addParam("FolderPaneHeight", "10");
                        iu.addParam("CheckFilesBySelectAllButton", "true");
                        iu.addParam("FolderPaneAllowRotate", "false");

                        //Configure colors.
                        iu.addParam("BackgroundColor", "#FFFFFF");
                        iu.addParam("SplitterLineColor", "#EFEFEF");
                        iu.addParam("UploadPaneBackgroundColor", "#aeccc");
                        iu.addParam("PreviewThumbnailBorderColor", "#F1F2BB");
                        iu.addParam("PreviewThumbnailActiveColor", "#F1F2AA");
                        iu.addParam("FolderPaneBackgroundColor", "#FFFFFF");


                        //Configure border and splitter line style.
                        iu.addParam("FolderPaneBorderStyle", "None"); //
                        iu.addParam("UploadPaneBorderStyle", "None"); //
                        //iu.addParam("FolderPaneBorderStyle", "Solid"); //
                        //iu.addParam("UploadPaneBorderStyle", "Solid"); //
                        iu.addParam("TreePaneBorderStyle", "None"); //
                        //iu.addParam("PaneBackgroundColor", "#777777");
                        iu.addParam("SplitterLineStyle", "Solid"); //
                        iu.addParam("FolderPaneShowDescriptions", "false");
                        iu.addParam("MessageUploadFailedText", "Upload failed (the connection was interrupted).");
                        iu.addParam("MessageUploadCompleteText", "File(s) uploaded sucessfully.");

                        //Configure thumbnail settings.
                        iu.addParam("UploadThumbnail1FitMode", "Fit");
                        iu.addParam("UploadThumbnail1Width", "800");
                        iu.addParam("UploadThumbnail1Height", "7000");
                        iu.addParam("UploadThumbnail1JpegQuality", "70");

                        iu.addParam("MaxImageHeight", "0");
                        iu.addParam("MaxImageWidth", "0");
                        iu.addParam("MaxFileSize", "2000000000");

                        iu.addParam("MessageDimensionsAreTooLargeText", "The image [Name] cannot be selected. This image dimensions ([OriginalImageWidth]x[OriginalImageHeight]) are too large. The image should be smaller than [MaxImageWidth]x[MaxImageHeight].");
                        //...other params...

                        //Configure user quota restriction. In real-life application these values should be 
                        //loaded from server.
                        iu.addParam("MaxFileCount", "0");
                        iu.addParam("MaxTotalFileSize", "0");

                        //Configure upload settings.
                        iu.addParam("FilesPerOnePackageCount", "1");
                        iu.addParam("FileMask", "*.jpg;*.jpeg;*.gif;*.png");
                        iu.addParam("AutoRecoverMaxTriesCount", "1");
                        iu.addParam("AutoRecoverTimeOut", "10000");

                        //Configure URL files are uploaded to.
                        iu.addParam("Action", "uploading.aspx");

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

                        //Add event handlers.
                        iu.addParam("SilentMode", "false");
                        iu.addEventListener("UploadFileCountChange", "ImageUploader_UploadFileCountChange");
                        iu.addEventListener("ViewChange", "ImageUploader_ViewChange");
                        iu.addEventListener("Status", "ImageUploaderID_Progress");
                        iu.fullPageLoadListenerName = "fullPageLoad";
                        
                        iu.addParam("LicenseKey","key goes here");

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

                        iu.writeHtml();
                    //]]>
                    </script>                    

Edited by user Friday, December 18, 2009 8:26:40 PM(UTC)  | Reason: Not specified

George Ulyanov  
#2 Posted : Tuesday, September 4, 2007 2:01:15 PM(UTC)
George Ulyanov

Rank: Advanced Member

Groups: Member
Joined: 7/26/2006(UTC)
Posts: 203

Hello,

It looks like you've experienced problems with the HTTP-only cookies.

Please read this topic for more info:

http://forums.aurigma.com/yaf_postst2071.aspx

Edited by user Sunday, February 24, 2008 5:07:09 PM(UTC)  | Reason: Not specified

Best regards,
George Ulyanov
mtabraiz  
#3 Posted : Tuesday, September 4, 2007 2:21:31 PM(UTC)
mtabraiz

Rank: Member

Groups: Member
Joined: 9/3/2007(UTC)
Posts: 3

Thanks George :)
mtabraiz  
#4 Posted : Wednesday, September 5, 2007 9:09:54 PM(UTC)
mtabraiz

Rank: Member

Groups: Member
Joined: 9/3/2007(UTC)
Posts: 3

Hi George,
We got the reply from support & incorporated the latest changes:

- Updated the latest jar file
- Updated version infomration
- Incorporated the code for cookies

But now we are getting a different error:
"the server attempted to redirect you, but redirects are not supported".

I went through the similar posts on the same issue but doesn't seem to reach any resolution.

http://www.aurigma.com/Forums/Topic6895-12-1.aspx

http://www.aurigma.com/Forums/Topic6951-12-1.aspx


Please help.

thanks

Tabraiz

Edited by user Monday, December 17, 2007 12:56:33 PM(UTC)  | Reason: Not specified

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.