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

Notification

Icon
Error

Options
Go to last post Go to first unread
lukermsdn111  
#1 Posted : Wednesday, August 11, 2010 6:06:46 PM(UTC)
lukermsdn111

Rank: Newbie

Groups: Member
Joined: 8/11/2010(UTC)
Posts: 4

Hi, I have followed your tutorial at:

http://www.aurigma.com/Products...er/UploadToAmazonS3.aspx

and input my amazon S3 login details. These details are correct but when i try and upload a picture I get this error message:


IUEmbed Warning:

Error occured during upload to Amazon S3 service. The service returned the following answer:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Invalid according to Policy: Policy Condition failed: ["eq", "$bucket", "AdactusTestBucket"]</Message><RequestId>99BACC924196911B</RequestId><HostId>lp6+c1Cjpghcwn/lINqqx3lMjUX/njWZyJMRsxUqdQAW4PRTK0qncMYeM5VIMOtv</HostId></Error>



Could anyone help me to work out why I am getting this error?

Regards

Luke

Edited by user Wednesday, August 11, 2010 6:31:58 PM(UTC)  | Reason: Not specified

Dmitry.Obukhov  
#2 Posted : Wednesday, August 11, 2010 8:59:53 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Luce,

You have a problem with the security policy. You can find more detailed information on it in the Uploading to Amazon S3 article. Please read it and follow the instructions.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
lukermsdn111  
#3 Posted : Wednesday, August 11, 2010 11:07:18 PM(UTC)
lukermsdn111

Rank: Newbie

Groups: Member
Joined: 8/11/2010(UTC)
Posts: 4

Thank you Dmitry for your reply,

You mention a 'security policy' issue with my image uploader application.

In the 'Uploading to Amazon S3' article you linked, 'security policy' is only mentioned in the section 'Using Image Uploader Embedding Scripts Library'.

I created mine using the ASP.NET instructions further down the page. In that section there is no mention of security policy. How would I include a security policy for my ASP.NET application?

This is my code:

Code:
<%@ Page Language="C#" AutoEventWireup="true" %>

<%@ Register Assembly="Aurigma.ImageUploader" Namespace="Aurigma.ImageUploader" TagPrefix="aur" %>
<%@ Register Assembly="Aurigma.ImageUploader" Namespace="Aurigma.ImageUploader.AmazonS3" TagPrefix="aur" %>


<!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 runat="server">
    <title>The Aurigma Enigma</title>
</head>
<body>
    <form id="form1" runat="server">
    
        <aur:ImageUploader ID="ImageUploader1" runat="server" Height="500" Width="700" LicenseKey="*my license key here*">
        </aur:ImageUploader>
    
        <aur:AmazonS3Extender ID="AmazonS3Extender1" runat="server"
            ImageUploaderID = "ImageUploader1"
            AWSAccessKeyId = "*My ID*"
            SecretAccessKey = "*My Access Key*"
            Bucket="AdactusTestBucket"
        >
        <SourceFile Acl="public-read" Key="${filename}">    
            <aur:PredefinedMetaProperty Name="imagewidth" Field="Width_[ItemIndex]" />
            <aur:PredefinedMetaProperty Name="imageheight" Field="Height_[ItemIndex]" />
            <aur:CustomMetaProperty Name="author" Value="Philip Pullman" />
        </SourceFile>
        </aur:AmazonS3Extender>
    </form>
</body>
</html>


Regards
Luke

Edited by user Wednesday, August 11, 2010 11:18:50 PM(UTC)  | Reason: Not specified

Dmitry.Obukhov  
#4 Posted : Thursday, August 12, 2010 7:44:38 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Luke,

I looked through your code. It is okay. You have set all necessary in this code.
To investigate your problem and resolve it in timely manner, could you provide me with a link to your site where this problem occurs?
Also, please take our AmazonS3 demo sample and try it with your AWSAccessKeyId, SecretAccessKey and Bucket. Then please let me know about the result

Looking forward to your reply.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
lukermsdn111  
#5 Posted : Sunday, August 15, 2010 7:29:22 PM(UTC)
lukermsdn111

Rank: Newbie

Groups: Member
Joined: 8/11/2010(UTC)
Posts: 4

Hey Dmitry,

Thanks a lot for the reply.

At the moment the code isnt being used in a website. I am trying it out and planned to purchase if it worked.

I followed the instructions at http://www.aurigma.com/P...er/UploadToAmazonS3.aspx in the section 'Upload to Amazon S3 From ASP.NET'.

When you say "please take our AmazonS3 demo sample and try it with your AWSAccessKeyId, SecretAccessKey and Bucket."... I thought this is what I have done already?

Regards,

Luke
Dmitry.Obukhov  
#6 Posted : Sunday, August 15, 2010 7:53:13 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Luke,

If you use our AmazonS3 sample and just set your AWSAccessKeyId, SecretAccessKey and Bucket (as it is described in the article), it should work okay. However, if it is possible, please provide me with a link to your site where you experience this problem.

Quote:
At the moment the code isnt being used in a website. I am trying it out and planned to purchase if it worked.

Please keep me informed about it.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
lukermsdn111  
#7 Posted : Wednesday, August 18, 2010 6:24:20 PM(UTC)
lukermsdn111

Rank: Newbie

Groups: Member
Joined: 8/11/2010(UTC)
Posts: 4

its now working, a colleague of mine removed lines 25-29 and now no problems :)
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.