Thank you for taking the time to look at this. I don't believe it is a server-side problem as the debug window never opens. Also it happens on 2 development PCs as well as our server (in fact every box we have tried)
I believe it might have something to do with the file size possibly and the combination with Forms Authentication. Small pdfs work fine and are not a problem.
However for larger files as attached when I use IE I get the error message "Image Uploader encountered some problem. If you see this message contact web master". In Firefox I get "The server attempted to redirect you, but server redirects are not supported" - though there are no redirect attempts on the server and the same server code is working very well for small PDFs as well as any other file type we are using. It is just larger PDFs that fail.
The following thread has the same error message in the same circumstances as us, i.e. a site that uses ASP.NET Forms Authentication and has the same error when using bigger images:
http://forums.aurigma.co...s-are-not-supported.aspxWe have implemented all of the suggestions in the thread and related threads and as I have said, we can quite easily upload small PDFs with this code without any problem as well as images. It just fails as soon as the PDF gets larger.
Java Console output, large file (4.7Mb):
Cookies:[.AuthCookie=AA37E366C1F28A496F4135392A773C6B824ED99A3C0C0E095107492DFC9A534456BB42F6A6243CD597DE31C8E5C8C85C2045D1CC79BF8F3C6F296A56A5ADBB31CFEEB2077DE8EF12]
Setting HTTP params: Host=localhost
Starting upload
network: Connecting http://localhost:80/ with proxy=DIRECT
###Error occured###
Status=[ERROR]
Progress=[0]
ValueMax=[0]
Value=[11]
[ErrorPage]
Java Console ouput, small file (748kb) - immediately afterwards:
Uploading to http://localhost/cp4/Admin/ImageUpload.aspx?UploadType=5&MakeID=921
Cookies:[.AuthCookie=AA37E366C1F28A496F4135392A773C6B824ED99A3C0C0E095107492DFC9A534456BB42F6A6243CD597DE31C8E5C8C85C2045D1CC79BF8F3C6F296A56A5ADBB31CFEEB2077DE8EF12]
Setting HTTP params: Host=localhost
Starting upload
network: Connecting http://localhost:80/ with proxy=DIRECT
Status =[200]
Upload complete. Result page:
EndOf Result page
Script:
<script type=“text/javascript”>
function ImageUploader1_BeforeUpload() {
var iu = getImageUploader("ImageUploader1");
iu.AddCookie('<%=FormsAuthentication.FormsCookieName %>=<%= Request.Cookies[FormsAuthentication.FormsCookieName].Value %>');
}
//<![CDATA[
var iu = new ImageUploaderWriter(“ImageUploader1”, 650, 400);
iu.activeXControlCodeBase = “../ImageUploader/ImageUploader5.cab”;
iu.activeXControlVersion = “5.7.24.0”;
iu.javaAppletCodeBase = “../ImageUploader/”;
iu.javaAppletCached = true;
iu.javaAppletVersion = “5.7.24.0”;
iu.javaAppletJarFileName = “ImageUploader5.jar”;
iu.addParam(“LicenseKey”, “our key”);
if (navigator.appName == 'Netscape')
{
iu.addEventListener(“BeforeUpload”,“ImageUploader1_BeforeUpload”);
}
iu.showNonemptyResponse = “off”;
iu.addParam(“ShowDescriptions”, “false”);
iu.addParam(“AllowMultipleSelection”, “false”);
iu.addParam(“PaneLayout”, “TwoPanes”);
iu.addParam(“AllowRotate”, “false”);
iu.addParam(“UploadSourceFile”, “true”);
iu.addParam(“ShowDebugWindow”, “true”);
iu.addParam(“FileMask”, “*.pdf”);
iu.addParam(“FolderPaneSortMode”, “Name”);
iu.addParam(“Action”, “ImageUpload.aspx”)
iu.addParam(“RedirectUrl”, “Gallery.aspx”);
//Tell Image Uploader writer object to generate all necessary HTML code to embed
//Image Uploader to the page.
document.getElementById('pickerDiv').innerHTML = iu.getHtml();
//]]>
</script>