Rank: Member
Groups: Member
Joined: 12/17/2007(UTC) Posts: 21
|
I thought I had this licked, but my upload still fails on all Firefox browsers. I've put the entire HTML from my upload page below. I tried hardcoding the Action and Redirect functions (to eliminate the var =<%...%> that has been mentioned elsewhere on this forum), but that did not change anything. The error I get is that it cannot find any of the POST variables. Since SourceFile_1 is the first variable I try to access on my upload.a5w page, the error is SourceFile_1 not found. This code and the entire process works perfectly on IE. The code between the <%a5...%> and the A5W page extensions are Alpha Five syntax, so no one here is going to recognize it, but as I said, it works just fine on IE.
Code:<html>
<head>
<meta name="generator" content="Alpha Five HTML Editor Version 8 Build 1847-3127">
<META http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
<script type="text/javascript" src="iuembed.js"></script>
</head>
<body>
<%a5
myActionUrl = "upload.a5w?a5w_sess_id="+session.sessionid
myRedirectUrl = "myphotos.a5w"
%>
<table width="740" border="0" bgcolor="#ffffff" cellpadding="5" cellspacing="0" align=center background="" >
<tr>
<td vAlign=top><font face="Hobo Std"><font
size=4 color=#003366>Upload Photos
<%a5
if eval_valid("session.__protected__album")
?"for Album <strong>" + lookupc("F",session.__protected__album,"Title","[PathAlias.ADB_Path]\photoalbums","Id") + "</strong>"
end if
%></font>
<script language="javascript" src="iuembed.js"></script>
<script language="javascript">
//commented out, hard coded below
var getActionUrl = "<%a5 ?myActionUrl %>";
var getRedirectUrl = "<%a5 ?myRedirectUrl %>";
function
ImageUploader_BeforeUpload(){
getImageUploader("ImageUploader").UploadThumbnailAdd("Fit",200,200);
getImageUploader("ImageUploader").setUploadThumbnailJpegQuality(4,80);
}
var iu = new ImageUploaderWriter("ImageUploader",650,450);
//Configure License Keys
iu.addParam("LicenseKey", "71050-4F18A-00000-0E804-6E7E9;72050-4F18A-00000-0FD48-09694");
//my otherparams
iu.addParam("MaxConnectionCount", "1");
iu.addParam("FileMask","*.jpg");
iu.addParam("RememberLastVisitedFolder","true");
iu.addParam("PaneLayout","TwoPanes");
iu.addParam("QualityMeterAcceptableQualityColor","#ffc600");
iu.addParam("QualityMeterHighQualityColor","#5bc529");
iu.addParam("QualityMeterLowQualityColor","#ececec");
iu.addParam("QualityMeterFormats", "4 x 6,1800,1200,1.5;5 x 7,2100,1500,1.5;8 x 10,3000,2400,1.5;16 x 20,4000,3200,2;30 x20,6000,4000,2");
iu.addParam("MaxFileCount","100");
iu.addParam("MessageMaxFileCountExceededText", "You can select not more then 100 files per upload.");
iu.addParam("MaxFileSize","2048000");
iu.addParam("FileIsTooLargeText", "Exceeds 2MB");
iu.addParam("MessageMaxFileSizeExceededText", "You can select files no larger than 2MB each.");
iu.addParam("MaxTotalFileSize","10485760");
iu.addParam("MessageMaxTotalFileSizeExceededText", "Your selections exceeds the maximum of 10 MB per upload.");
iu.addEventListener("BeforeUpload","ImageUploader_BeforeUpload");
iu.addParam("UploadSourceFile","true");
iu.addParam("AllowRotate","true");
//first thumb
iu.addParam("UploadThumbnail1FitMode","Fit");
iu.addParam("UploadThumbnail1Width","100");
iu.addParam("UploadThumbnail1Height","100");
iu.addParam("UploadThumbnail1JpegQuality","70");
//second thumb
iu.addParam("UploadThumbnail2FitMode","Fit");
iu.addParam("UploadThumbnail2Width","200");
iu.addParam("UploadThumbnail2Height","200");
iu.addParam("UploadThumbnail2JpegQuality","70");
//cause transmission to recover if failed during transmission
iu.addParam("FilesPerOnePackageCount","1");
iu.addParam("AutoRecoverMaxTriesCount","1");
iu.addParam("AutoRecoverTimeOut","5000");
//redirect after upload complete
//iu.addParam("Action","upload.a5w");
//iu.addParam("RedirectUrl","myphotos.a5w?a5w_sess_id=6239e98b0631474aac1e4250ebe1179c");
iu.addParam("Action",getActionUrl);
iu.addParam("RedirectUrl",getRedirectUrl);
iu.addParam("AllowLargePreview","true");
//sends as one batch (-1) or individual(1)
iu.addParam("FilesPerOnePackageCount","1");
iu.addParam("ShowDebugWindow","true");
// If you do not want to use ActiveX or Java version, set the appropriate
// property to false.
iu.activeXControlEnabled = true;
iu.activeXControlCodeBase = "ImageUploader5.cab";
iu.activeXControlVersion = "5,0,40,0";
iu.javaAppletEnabled = true;
iu.javaAppletCodeBase = "./";
//iu.javaAppletCodeBase = "http://www.alphatogohost.com:82/alphatogohost/photo/www";
iu.javaAppletCached=true;
iu.javaAppletVersion="5,0,40,0";
// ... initialize params as described in the next topic...
// As soon as you call this method, all necessary HTML code is inserted
// into the page on the current position. Alternatively, you can
// get the string with appropriate HTML code using the getHtml method,
// and write it to the necessary position manually (maybe with some modifications).
iu.writeHtml();
</script>
</font><font
><font color=#000080></font>
</font></font> </td></tr>
<tr>
<td vAlign=top background="" >
<font face="Hobo Std" color=#003366
>
<p><table width="100%" border="1" cellpadding="4" cellspacing="0" >
<tr>
<td>
<p><table width="100%" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td>
<p><font color=#003366>Photo size selection gyuide</font></p>
<p><font face=Tahoma size=2>Use this handy chart to determine best
quality for various sizes:</font>
<br></p></td>
<td>
<img src="formats.gif" ></td>
</tr>
</table></p></td>
</tr>
</table></font></p></td>
</tr>
</table>
</body></html>
Edited by user Tuesday, February 26, 2008 12:04:16 PM(UTC)
| Reason: Not specified
|