Hello
I am using the ImageUploader component in Firefox 3.0.5 in an asp.net application
The application uses SSL for security.
When uploading a file using the imageuploader i get a popup message box displaying the text, "Page to load is unaccessible".
Could it be a security permission causing the error perhaps?
The java console output is:
Java Plug-in 1.6.0_11
Using JRE version 1.6.0_11 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\xy33585
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
Aurigma ImageUploader version: 5.5.6.0
Current document URL:
https://secure.cvp.mypor...uirements.aspx?fromId=pdReading cookies
Cookies: fcspersistslider1=4; ObSSOCookie=sPXL68vIeQxo6e4gA5ePKbF0RKZ7rMLt%2B0CPXnSqF3T59dwe0EOoHZg9rhhh1VeNOaafuPwJr6k%2BGBg3HWH7oH17s4HDkVQv0dNCwZ2GUD8F5LiF%2F3poHseatncWa53bT88L4Oiit7KQO1mzUJbMNSB2AQuDn5Xy92pIyXXLl747VId25dS0XBUpHIIozX49hyFxp%2FWs8mqTF3FStuOLwWRjG2yjF7xJiuq0MXm5dSYpm7Qd0cMDFpXkwXnO554fW5%2FJKmtuS%2FStbSCqLotmepXeODrwCfFvEz%2Bdd9RF1Z4W; ctl00_viewMenu=0|-1; ctl00_transactMenu=0|1; fcspersistslider1=3; ASPSESSIONIDSSTQCQSR=BODHKFDAPPLOKCBOHFPKNEJH; SL_alert_Visible=false
Reading referer
Referer:
https://secure.cvp.mypor...uirements.aspx?fromId=pdUploading to
https://secure.cvp.mypor...uirements.aspx?fromId=pdSetting HTTPS params: Host=secure.cvp.myportfolio.oldmutual.co.za.dev; Port=443
Cookies:[ASP.NET_SessionId=4zc5bf55ocysvo452kfjwj55;]
Starting upload
###Error occured###
Status=[ERROR]
Progress=[0]
ValueMax=[0]
Value=[3]
[ErrorPage]
[EndOfErrorPage]
Uploading to
https://secure.cvp.mypor...uirements.aspx?fromId=pdSetting HTTPS params: Host=secure.cvp.myportfolio.oldmutual.co.za.dev; Port=443
Cookies:[ASP.NET_SessionId=4zc5bf55ocysvo452kfjwj55;]
Starting upload
The aspx markup is:
<script type="text/javascript">
function ImageUploader1_ViewChange()
{
document.getElementById("selectView").selectedIndex = getImageUploader("ImageUploader1").getFolderView();
}
function ImageUploader1_AfterUpload()
{
location.reload(true);
}
function ImageUploader1_HideUploader()
{
document.getElementById('divUpload').style.display = 'none';
}
//CA 07012009 imageupload does not work with firefox
// Fix: created global variable to hold awdkey value for use in 'ImageUploader1_BeforeUpload()' method
var oAWDKey;
function ImageUploader1_ShowUploader(awdkey)
{
document.getElementById('hideUpload').style.display = 'none';
document.getElementById('divUpload').style.display = 'block';
oAWDKey = awdkey;
getImageUploader("ImageUploader1").Action=getImageUploader("ImageUploader1").getAction() + '&req=' + awdkey;
}
<%
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();
%>
function ImageUploader1_BeforeUpload()
{
//use global variable containing awdkey and add it to posted form
getImageUploader("ImageUploader1").AddField('req', oAWDKey);
getImageUploader("ImageUploader1").AddCookie('ASP.NET_SessionId=<%= sessionId %>;');
}
// Enable / disable send button
function ImageUploader1_UploadFileCountChange()
{
var ctl = document.getElementById("<%=this.btnAttach.ClientID %>");
if (getImageUploader("ImageUploader1").getUploadFileCount() > 0)
ovalEnable(ctl);
else
ovalDisable(ctl);
}
function UploadFile()
{
getImageUploader('ImageUploader1').Send();
//var ctl = document.getElementById("<%=this.btnSubmit.ClientID %>");
//ovalEnable(ctl);
return false;
}
function ImageUploader1_Progress(Status, Progress, ValueMax, Value, StatusText)
{
if (Status=="COMPLETE"){
window.location = 'attachRequirements.aspx?' + '<%=Request.QueryString%>'
}
}
function hideGuide()
{
var now = new Date();
var expiryDate = new Date();
expiryDate.setFullYear(now.getFullYear() + 5);
// Make sure the div is there before trying to hide it
if (document.getElementById("divUserGuide"))
{
document.getElementById("divUserGuide").style.display = "none";
document.getElementById("spnViewGuide").style.display = "inline";
setCookie("ScanAndLinkGuide_Visible", "false", expiryDate);
}
}
function showGuide()
{
var now = new Date();
var expiryDate = new Date();
expiryDate.setFullYear(now.getFullYear() + 5);
// Make sure the div is there before trying to hide it
if (document.getElementById("divUserGuide"))
{
document.getElementById("divUserGuide").style.display = "block";
document.getElementById("spnViewGuide").style.display = "none";
setCookie("ScanAndLinkGuide_Visible", "true", expiryDate);
}
}
function document_OnLoad()
{
var viewGuide = getCookie("ScanAndLinkGuide_Visible");
if (viewGuide == null)
showGuide();
else
{
if (viewGuide == "false")
hideGuide();
else
showGuide();
}
}
</script>
<script type="text/javascript">
//<![CDATA[
//Create JavaScript object that will embed Image Uploader to the page.
var iu = new ImageUploaderWriter("ImageUploader1",650, 400);
//For ActiveX control full path to CAB file (including file name) should be specified.
iu.activeXControlCodeBase = "/shared/sharedcontrols/client/ImageUploader5.cab";
iu.activeXControlVersion = "5,1,10,0";
//For Java applet only path to directory with JAR files should be specified (without file name).
iu.javaAppletJarFileName = "ImageUploader5.jar";
iu.javaAppletCodeBase = "/shared/sharedcontrols/client/";
iu.javaAppletCached = true;
iu.javaAppletVersion = "5.1.10.0";
iu.showNonemptyResponse = "off";
if (iu.getControlType() == "Java")
{
iu.addEventListener("BeforeUpload", "ImageUploader1_BeforeUpload");
}
//Configure appearance.
iu.addParam("PaneLayout", "TwoPanes");
iu.addParam("ShowDebugWindow", "true");
iu.addParam("BackgroundColor", "#ccccff");
iu.addParam("ShowButtons", "False");
iu.addParam("AllowAutoRotate", "True");
iu.addParam("CacheGuiGraphics", "True");
iu.addParam("AllowMultipleSelection", "false");
//Configure License Keys
iu.addParam("LicenseKey", "");
//Configure thumbnail settings.
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "120");
iu.addParam("UploadThumbnail1Height", "120");
iu.addParam("UploadThumbnail1JpegQuality", "60");
//Configure URL files are uploaded to.
iu.addParam('Action', 'attachRequirements.aspx?fromId=<%=Request.QueryString["fromId"]%>')
iu.addParam("FileMask", "<%=mySeries.Web.ScanAndLinkHelper.getAllowableFileTypes() %>");
iu.addParam("MaxFileSize", "2097152 ");
iu.addParam("MessageMaxFileSizeExceededText", "The file [Name] cannot be selected. This file size exceeds the limit ([Limit] KB).");
//Configure URL where to redirect after upload.
//This simply reloads the page to reflect uploaded files
//iu.addParam('RedirectUrl', 'attachRequirements.aspx?fromId=<%=Request.QueryString["fromId"]%>')
iu.addEventListener("Progress", "ImageUploader1_Progress");
//iu.addEventListener("AfterUpload", "ImageUploader1_AfterUpload");
iu.addEventListener("UploadFileCountChange", "ImageUploader1_UploadFileCountChange");
iu.addEventListener("ViewChange", "ImageUploader1_ViewChange");
// No message after upload complete
iu.addParam("MessageUploadCompleteText", "");
iu.instructionsEnabled=true;
iu.instructionsCommon="Image Uploader ActiveX control is necessary to upload "+
"your files quickly and easily. "+
"Installation will take up to few minutes, please be patient. To install Image Uploader, ";
iu.instructionsNotWinXPSP2="please reload page and select \"Yes\" button " +
"when you will see control installation dialog."
iu.instructionsWinXPSP2="please click on Information Bar. After page reloading select \"Yes\" when "+
"you will see control installation dialog.";
//Tell Image Uploader writer object to generate all necessary HTML code to embed
//Image Uploader to the page.
iu.writeHtml();
//]]>
</script>