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