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=UploadPictureCommandSetting 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.