crossdomain.xml, Amazon S3 and uploading with "uploadify".

945 views
Skip to first unread message

jstrong

unread,
May 12, 2011, 2:08:26 PM5/12/11
to Canvas LMS Users
Hey everyone, I would just like to mention that in order for Amazon S3
uploading to work you have to have a crossdomain.xml file (which has
public view permissions obviously) in your Amazon S3 bucket, otherwise
flash gives the infamous security sandbox error.

The only problem is that the sandbox error message is a bit hidden, it
took me a couple of hours to find out what was going on. The only way
I could find the error was by clicking the little "uploading files"
rectangle that appears on the screen (top left-hand side of the folder
list in the Files page).

Maybe this would be worth adding to the integration wiki page?
https://github.com/instructure/canvas-lms/wiki/Canvas-Integration

Thanks,
James.

Zach Wily

unread,
May 12, 2011, 2:23:01 PM5/12/11
to canvas-l...@googlegroups.com
Good catch James. We'll add that to the doc.

--
Zach Wily
Director of Engineering, Instructure

jstrong

unread,
May 12, 2011, 2:25:03 PM5/12/11
to Canvas LMS Users
I went ahead and added this to the wiki (it is a wiki after all!). I
hope no one minds.

JT Olds

unread,
May 12, 2011, 3:13:54 PM5/12/11
to canvas-l...@googlegroups.com
No problem. Thanks!

ismael

unread,
Jun 21, 2011, 5:55:46 AM6/21/11
to Canvas LMS Users
Hi

I tried the above changes and added the crossdomain.xml file in my
amazon s3
However, I noticed that when I click upload, the browser looks for
this link:

https://mybucketname.s3.amazonaws.com/crossdomain.xml

However, the default s3 link for this file in my bucket is:
https://s3.amazonaws.com/mybucketname/crossdomain.xml

Is there anything I'm missing?

Thanks
Ismael

On May 12, 10:13 pm, JT Olds <j...@instructure.com> wrote:
> No problem. Thanks!
>
> On Thu, May 12, 2011 at 12:25 PM, jstrong <laspluviosil...@gmail.com> wrote:
> > I went ahead and added this to the wiki (it is a wiki after all!). I
> > hope no one minds.
>
> > On May 12, 1:08 pm, jstrong <laspluviosil...@gmail.com> wrote:
> >> Hey everyone, I would just like to mention that in order forAmazonS3
> >> uploading to work you have to have a crossdomain.xml file (which has
> >> public view permissions obviously) in yourAmazonS3 bucket, otherwise

James Strong

unread,
Jun 22, 2011, 9:33:47 AM6/22/11
to canvas-l...@googlegroups.com
Both should work, I think.

At least both of the links you sent me open.

Do you get a Security Sandbox Violation?

ismael

unread,
Jun 29, 2011, 7:10:34 AM6/29/11
to Canvas LMS Users
Hi

I get a successful upload message from canvas now (using s3) i.e. it
find the crossdomain.xml in my bucket.
The file shows up in the list.
However, when I click on the file, I get a missing key error and also,
the file does not appear in my s3 bucket

Any ideas?

Ismael
On Jun 22, 4:33 pm, James Strong <laspluviosil...@gmail.com> wrote:
> Both should work, I think.
>
> At least both of the links you sent me open.
>
> Do you get a Security Sandbox Violation?
>
Reply all
Reply to author
Forward
0 new messages