Topic: Direct To S3 clientaccesspolicy.xml and crossdomain.xml not working

Hi,

I have PLUpload working against my Amazon S3 bucket but tonight I noticed something that looks like a bug, or I am not specifying something correctly.

PLUpload is requesting both CrossDomain & ClientAccessPolicy from s3.amazonaws.com rather than mybucket.s3.amazonaws.com.

Now I found out that s3.amazonaws.com has a crossdomain.xml file in its root so that is why Flash always worked. But silverlight failed for me (this is the first time I tried to make it the runtime of choice).

I need to know how to get PLUpload "GET"ting the xml files required for both SL & Flash out of my bucket.

Here is what the get looks like:


GET /crossdomain.xml HTTP/1.1
Host: s3.amazonaws.com
Connection: keep-alive
Accept: */*
User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.68 Safari/534.24
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3


GET /clientaccesspolicy.xml HTTP/1.1
Host: s3.amazonaws.com
Connection: keep-alive
Accept: */*
User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.68 Safari/534.24
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Thanks very much in advance for your timely attention in this matter. I am under the impression this is supposed to somehow be automatic. My uploads do go to my bucket for Flash so somehow it knows my bucket.

I have not looked at this code for a bit until the problem was reported to me by one of my QA people.

Thanks so much!

Cary

Re: Direct To S3 clientaccesspolicy.xml and crossdomain.xml not working

PS- This is why it works anyway. Amazon S3 has a crossdomain.xml as per link below

http://s3.amazonaws.com/crossdomain.xml

Re: Direct To S3 clientaccesspolicy.xml and crossdomain.xml not working

Hi!

Nevermind. I fixed it. The url must be in the bucketname.s3.amazonaws.com format rather than s3.amazonaws.com/bucketname format.

It seems with the latter example it cannot issue the proper GET. All is well and my direct to S3 pluploader is now done.