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

Notification

Icon
Error

Options
Go to last post Go to first unread
sb&o  
#1 Posted : Monday, September 15, 2008 6:23:55 PM(UTC)
sb&o

Rank: Newbie

Groups: Member
Joined: 9/14/2008(UTC)
Posts: 4

hello,

it made two weeks trying to find a solution to my problem .

I am using the version (5.5.1.0) dual ImageUploader .It works fine in IE , but not in Firefox.

I used the suggested solution but it doesn't work.

Version ASP.NET :2.0.50727.1433

code fot getting the ASP.NET_SessionId value

<%

string idessesion= null;

int j=0;

foreach (string value in Request.Cookies.Keys)

{

if (value == "ASP.NET_SessionId" )

{

idessesion= Request.Cookies[j].Value;

j++;

}

}

%>

<script language="javascript">

function ImageUploader1_BeforeUpload()

{ getImageUploader("ImageUploader1").AddCookie("ASP.NET_SessionId=<%=idessesion%>");

}

.......

//For Java applet we specify only directory with JAR files

iu.javaAppletCodeBase = "Upload/";

iu.javaAppletVersion="5.5.1.0";

.......

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

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

}

.....

iu.writeHtml();

-----------------------------------------------------------------------------

Java console output

Uploading to http://www.mesvacancesen...cmd=UploadPictureCommand

Setting HTTP params: Host=www.mesvacancesenphoto.com

Cookies:<__utmz=86540676.1220625462.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=86540676.4499255388262031000.1220625462.1221550558.1221556858.40; temporaryOrder=sessionId=2f727bb6-4df3-4387-a0b4-4448e5498190&orderExpires=20/09/2008 16:33:23; __utmc=86540676; __utmb=86540676.3.10.1221556858>

Starting upload

16 sept. 2008 11:21:40 org.apache.commons.httpclient.HttpMethodBase processCookieHeaders

ATTENTION: Invalid cookie header: "temporaryOrder=sessionId=2f727bb6-4df3-4387-a0b4-4448e5498190&orderExpires=01/10/2008 11:17:05; expires=Wed, 01-Oct-2008 09:17:05 GMT; path=/". Unable to parse expiration date parameter: Wed

Status =[302]

Server redirection attempt: "/Default.aspx?Content=SummaryTransfer"

UploadException occured

###Error occured###

Status=[ERROR]

Progress=[0]

ValueMax=[0]

Value=[11]

[ErrorPage]

/Default.aspx?Content=SummaryTransfer

[EndOfErrorPage]

Any help would be appreciated.

Thanks.

Dmitry  
#2 Posted : Tuesday, September 16, 2008 2:02:57 AM(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,

Try the following:

Code:

    getImageUploader("ImageUploader").AddCookie('"ASP.NET_SessionId"=
        <%= idessesion %>;');
Sincerely yours,

Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!

sb&o  
#3 Posted : Tuesday, September 16, 2008 4:55:48 PM(UTC)
sb&o

Rank: Newbie

Groups: Member
Joined: 9/14/2008(UTC)
Posts: 4

Thank you

I have tried but it does not work, I'm really lost;plaease help me. Here is my javascript

the ASP.NET_SessionId value return this :

getImageUploader("ImageUploader1").AddCookie('"ASP.NET_SessionId"=86540676.1220625462.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);');

<script language="javascript">

function ImageUploader1_BeforeUpload()

{ getImageUploader("ImageUploader1").AddCookie('"ASP.NET_SessionId"=<%= idessesion %>;');

}

var iu = new ImageUploaderWriter("ImageUploader", 750, 420);

iu.activeXControlEnabled = false;

iu.javaAppletEnabled = true;

//For ActiveX control we specify full path for CAB file

iu.activeXControlCodeBase = "Components/Upload/ImageUploader5.cab";

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

//For Java applet we specify only directory with JAR files

iu.javaAppletCodeBase = "Components/Upload/";

iu.javaAppletCached = true;

iu.javaAppletVersion="5.5.1.0";

iu.addParam("AdditionalFolderNavigator", "ImageUploader1");

iu.addParam("Action", "<% =this.UploaderUrl %>");

if (iu.getControlType() == "Java")

{

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

}

iu.addParam("AllowMultipleSelection", "True");

iu.addParam("CheckFilesBySelectAllButton", "False");

iu.addParam("EnableRotate", "False");

iu.addParam("RedirectUrl", "<% =this.RedirectUrl %>");

iu.addParam("RememberLastVisitedFolder", "True");

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

iu.addParam("UncheckUploadedFiles", "True");

iu.addParam("AdditionalFolderNavigator ", "");

iu.addParam("AdditionalFormName", "");

iu.addParam("FileMask", "<% =this.PictureMask %>");

iu.addParam("LicenseKey", "71050-10000-43C73-5A7EE-4AB94;72050-10000-553A7-E8041-7EB1C");

iu.writeHtml();

</script>

sb&o  
#4 Posted : Tuesday, September 16, 2008 7:50:40 PM(UTC)
sb&o

Rank: Newbie

Groups: Member
Joined: 9/14/2008(UTC)
Posts: 4

hello,

I found the solution. The problem was the ASP.NET_SessionId value .

----------------------------------

code to get the ASP.NET_SessionId value

<%

String sessionId = null;

HttpCookie aCookie;

for(int i=0; i<Request.Cookies.Count; i++)

{

aCookie = Request.Cookies[i];

if(!aCookie.HasKeys)

{

if(aCookie.Name == "ASP.NET_SessionId")

{

sessionId = Server.HtmlEncode(aCookie.Value);

}

}

}

sessionId = sessionId.ToString();

%>

----------------------------------------------------------

code to add Cookie :

<script language="javascript">

function ImageUploader1_BeforeUpload()

{

getImageUploader("ImageUploader").AddCookie('ASP.NET_SessionId=<%= sessionId %>;');

It works fine.

Thank you

...........................................................

benhmmouda  
#5 Posted : Thursday, October 30, 2008 11:00:49 PM(UTC)
benhmmouda

Rank: Newbie

Groups: Member
Joined: 10/30/2008(UTC)
Posts: 1

Hello

I've the same problem but my script is in PHP

can somebody HELP ME pleaze

thanks

Dmitry  
#6 Posted : Friday, October 31, 2008 8:21:03 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,

The way how to fix this problem in PHP was discussed in the PRB: Image Uploader for Java looses HTTP-only cookies topic. Please, read the detailed information there.

Edited by user Friday, October 31, 2008 8:21:47 PM(UTC)  | Reason: Not specified

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.