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

Notification

Icon
Error

Options
Go to last post Go to first unread
zhenl  
#1 Posted : Wednesday, November 4, 2009 8:17:20 AM(UTC)
zhenl

Rank: Member

Groups: Member
Joined: 10/16/2009(UTC)
Posts: 23

Thanks: 4 times
Hello,
I'm testing the demo for ASP.net to upload multi files to S3. The demo works properly in IE. But in firefox when the page loading ,there is alert window: IUEmbed Warning: Function "ImageUploader1_PreserveHeepCookies" passed to addEventListener methor doesn't exist. Then the applet can be loaded. However, when try to upload images, there is an error: Image Uploader encountered some problem. If you see this message, contact web master. And it seems there is a 405 error about IIS.
Could you please help?
Thanks.
Lei
File Attachment(s):
as3-ASPNET.zip (2,290kb) downloaded 2 time(s).
zhenl  
#2 Posted : Thursday, November 5, 2009 7:16:54 AM(UTC)
zhenl

Rank: Member

Groups: Member
Joined: 10/16/2009(UTC)
Posts: 23

Thanks: 4 times
Is there some one can help me?
There is 405 server side error when using firefox to upload images to S3. I use the demo of s3 for asp.net. It works fine in IE.
Should I configure IIS?

Thanks in advance.
Tamila  
#3 Posted : Thursday, November 5, 2009 2:45:36 PM(UTC)
Tamila

Rank: Advanced Member

Groups:
Joined: 3/9/2008(UTC)
Posts: 554

Was thanked: 1 time(s) in 1 post(s)
Hello,

Could you please clarify what version of Image Uploader do you use?
Also post here the rendered code of your page which you get in Firefox.

Edited by user Thursday, November 5, 2009 2:48:47 PM(UTC)  | Reason: Not specified

Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!
zhenl  
#4 Posted : Friday, November 6, 2009 5:11:19 PM(UTC)
zhenl

Rank: Member

Groups: Member
Joined: 10/16/2009(UTC)
Posts: 23

Thanks: 4 times
Hello Tamila
Thank you very much for the reply.

The image uploader is dual 6.1.4.19258.

Below is the rendered code. I have attached the demo project in the project.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
Amazon S3 advanced sample
</title>

<script type="text/javascript" src="scripts/manualsend.js"></script>

<script type="text/javascript">

function startUpload() {
send();
}

</script>

</head>
<body>
<form name="form1" method="post" action="default.aspx" id="form1">

<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTMyNDMxMDEzMGRkluGGDm3xjFaUdatLi0XOIzlvZ7c=" />
</div>


<script src="/imageuploaderas3/WebResource.axd?d=izEAVSPDElW3hkBhfkcrQ_mK6kw_AWcJmJBeTQw5DZeASNJBXx52Jbkq5DGFniGtposqS_noNs0dgiDU0iXiQKM63Et_CzFTku8HmsS8XLc1&amp;t=633888709160000000" type="text/javascript"></script>
<script src="/imageuploaderas3/WebResource.axd?d=izEAVSPDElW3hkBhfkcrQ_mK6kw_AWcJmJBeTQw5DZeASNJBXx52Jbkq5DGFniGtrE9L6S0yUMbZAtLJmPJkZmJ9h-e3cfemyiiXHKMDjb2nO-BCEOKSx4J2BJM5EQzJ0&amp;t=633888709160000000" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function ImageUploader1_PreserveHttpCookies() {
var iu = getImageUploader("ImageUploader1")
if (typeof iu.AddCookie != 'undefined') {
iu.AddCookie(".ASPXANONYMOUS=UtDXejuNygEkAAAAMWZjYTY3ZDEtMDdkZS00ODlmLTlkMTMtODkyMDljNTEzMzdm0;gemini_mpl={"ExpandedItems":["0"]};StyleSheetWidget_SizeWidget=width1024;StyleSheetWidget_TextSizeWidget=MediumText;Gemini31=936EC17637725D145AA53CBA0F25C39A5728CAC6CF70528AC58ED4357AE3A16AFE18BDB5255BCA86488D3AE73B878E6C322B58097F530DC43E7AB58EBDAF545949FBD59C9B9E5DEBB6C7C36CE402A6B3;ASP.NET_SessionId=4kosiqnsp2lfqyft0x1izfbi");
}
}
//]]>
</script>

<script src="/imageuploaderas3/WebResource.axd?d=izEAVSPDElW3hkBhfkcrQ_mK6kw_AWcJmJBeTQw5DZeASNJBXx52Jbkq5DGFniGtCtzsJ3TKUN3Daz6zB5RmArMKd8_1VtcTirA-mEcUJzc1&amp;t=633888709160000000" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function AmazonS3Extender1_InitWriter(writer) {
writer.removeParam("Action");
var as3 = new AmazonS3Extender(writer);
window["AmazonS3Extender1"] = as3;
as3.setAWSAccessKeyId("1M0RXWWBKXE2G92ZGBG2");
as3.setBucket("testuploader");
as3.getSourceFile().setAcl("public-read");
as3.getSourceFile().setKey("upload/original/${filename}");
as3.getSourceFile().setPolicy("eyAiZXhwaXJhdGlvbiI6ICIyMDA5LTExLTA4VDA5OjA2OjM0LjAwMFoiDQosICJjb25kaXRpb25zIjogWw0KCXsiYWNsIjogInB1YmxpYy1yZWFkIiB9DQoJLCB7ImJ1Y2tldCI6ICJ0ZXN0dXBsb2FkZXIiIH0NCgksIHsic3VjY2Vzc19hY3Rpb25fc3RhdHVzIjogIjIwMCJ9DQoJLCBbInN0YXJ0cy13aXRoIiwgIiRrZXkiLCAidXBsb2FkL29yaWdpbmFsLyJdDQpdDQp9DQo=");
as3.getSourceFile().setSignature("qyWjLVMwt6F3TBNMiLNCvorh+3w=");
as3.getThumbnail1().setAcl("public-read");
as3.getThumbnail1().setKey("upload/thumb/${filename}");
as3.getThumbnail1().setPolicy("eyAiZXhwaXJhdGlvbiI6ICIyMDA5LTExLTA4VDA5OjA2OjM0LjAwMFoiDQosICJjb25kaXRpb25zIjogWw0KCXsiYWNsIjogInB1YmxpYy1yZWFkIiB9DQoJLCB7ImJ1Y2tldCI6ICJ0ZXN0dXBsb2FkZXIiIH0NCgksIHsic3VjY2Vzc19hY3Rpb25fc3RhdHVzIjogIjIwMCJ9DQoJLCBbInN0YXJ0cy13aXRoIiwgIiRrZXkiLCAidXBsb2FkL3RodW1iLyJdDQpdDQp9DQo=");
as3.getThumbnail1().setSignature("0LYmlr9NuXiXRefZ6jkNki+vj/k=");
as3.getThumbnail2().setAcl("public-read");
as3.getThumbnail2().setKey("upload/large/${filename}");
as3.getThumbnail2().setPolicy("eyAiZXhwaXJhdGlvbiI6ICIyMDA5LTExLTA4VDA5OjA2OjM0LjAwMFoiDQosICJjb25kaXRpb25zIjogWw0KCXsiYWNsIjogInB1YmxpYy1yZWFkIiB9DQoJLCB7ImJ1Y2tldCI6ICJ0ZXN0dXBsb2FkZXIiIH0NCgksIHsic3VjY2Vzc19hY3Rpb25fc3RhdHVzIjogIjIwMCJ9DQoJLCBbInN0YXJ0cy13aXRoIiwgIiRrZXkiLCAidXBsb2FkL2xhcmdlLyJdDQpdDQp9DQo=");
as3.getThumbnail2().setSignature("OfpcBgkm9phoebUWSTV71OxCnX4=");
}
//]]>
</script>


<div id="ImageUploader1_aspnetcontrol_wrapper">
<script type="text/javascript">
//<![CDATA[
var ImageUploader1_w = new ImageUploaderWriter("ImageUploader1", 600, 400);
ImageUploader1_w.activeXControlCodeBase = "/imageuploaderas3/WebResource.axd?d=izEAVSPDElW3hkBhfkcrQ_mK6kw_AWcJmJBeTQw5DZeASNJBXx52Jbkq5DGFniGtW4bR4uXwfMhMO3tsbWzYZTtkRT9eaKGgjoGP8oUUKt01&t=633888709160000000";
ImageUploader1_w.activeXControlVersion = "6,1,4,0";
ImageUploader1_w.javaAppletJarFileName = "/imageuploaderas3/WebResource.axd?d=izEAVSPDElW3hkBhfkcrQ_mK6kw_AWcJmJBeTQw5DZeASNJBXx52Jbkq5DGFniGtW4bR4uXwfMhMO3tsbWzYZddIPN7P6EzuDcCYOZYGtuY1&t=633888709160000000";
ImageUploader1_w.javaAppletCodeBase = "/";
ImageUploader1_w.javaAppletVersion = "6.1.4.0";
ImageUploader1_w.addParam("ButtonSendText", "");
ImageUploader1_w.addParam("LicenseKey", "71060-4F58B-00000-02F43-43E68;72060-4F58B-00000-00D5E-F4CC5");
ImageUploader1_w.addParam("ShowDebugWindow", "True");
ImageUploader1_w.addParam("UncheckUploadedFiles", "False");
ImageUploader1_w.addParam("UploadThumbnail1FitMode", "1");
ImageUploader1_w.addParam("UploadThumbnail2FitMode", "1");
ImageUploader1_w.addParam("Action", ".");
ImageUploader1_w.addEventListener("BeforeUpload", "beforeupload");
ImageUploader1_w.addEventListener("PackageComplete", "packagecomplete");
ImageUploader1_w.addEventListener("FullPageLoad", "ImageUploader1_PreserveHttpCookies");
var ImageUploader1_ip = new InstallationProgressExtender(ImageUploader1_w);
ImageUploader1_ip.setProgressImageUrl("/imageuploaderas3/WebResource.axd?d=izEAVSPDElW3hkBhfkcrQ_mK6kw_AWcJmJBeTQw5DZeASNJBXx52Jbkq5DGFniGtED83AeS9rTGcIE9w7jq62oEUg1msDnnL_aaZp9Bad4E1&t=633888709160000000");
AmazonS3Extender1_InitWriter(ImageUploader1_w);
window.ImageUploader1_w = ImageUploader1_w;
var wrapper = document.getElementById("ImageUploader1_aspnetcontrol_wrapper")
wrapper.innerHTML=ImageUploader1_w.getHtml();
//]]>
</script>

</div>


<span id="AmazonS3Extender1"></span>
<input type="button" value="Send" onclick="startUpload();" />
</form>

<script type="text/javascript">

// get Image Uploader
var IMAGE_UPLOADER_ID = "ImageUploader1";

// disable debug messages, otherwise error message when we break upload, will be shown.
//IUCommon.debugLevel = 0;

</script>

</body>
</html>

Regards
Lei
Tamila  
#5 Posted : Sunday, November 8, 2009 8:10:13 PM(UTC)
Tamila

Rank: Advanced Member

Groups:
Joined: 3/9/2008(UTC)
Posts: 554

Was thanked: 1 time(s) in 1 post(s)
Hi Lei,

Thank you for the code. Our developers investigated your problem. Actually you can switch off preserving Cookies:
PreserveHttpCookies="False"

As you upload files to Amazon you do not need cookie at all.
Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!
zhenl  
#6 Posted : Monday, November 9, 2009 9:05:11 AM(UTC)
zhenl

Rank: Member

Groups: Member
Joined: 10/16/2009(UTC)
Posts: 23

Thanks: 4 times
Hello Tamila
Thank you very much for your reply. The issue of cookie is fixed. But there is still the 405 server side error when using Firefox to send image to S3. I'm trying the demo download from the thread http://forums.aurigma.co...ader-with-Amazon-S3.aspx . It works fine in IE. I'm using a trial version now. Is the issue caused by trial version?
Regards
Lei
Tamila  
#7 Posted : Monday, November 9, 2009 7:59:04 PM(UTC)
Tamila

Rank: Advanced Member

Groups:
Joined: 3/9/2008(UTC)
Posts: 554

Was thanked: 1 time(s) in 1 post(s)
Lei,

Could you please send me the link to the page where you experience problem with Image Uploader, also send me login information if necessary. You can send me it via PM.
Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
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.