您可以通过 Flex 使用 Amazon S3 吗? [英] Can you use Amazon S3 via Flex?

查看:43
本文介绍了您可以通过 Flex 使用 Amazon S3 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于缺少 clientaccesspolicy.xml,通过 Flex 使用 Amazon S3 似乎存在问题.有什么解决办法吗?

Due to the lack of clientaccesspolicy.xml, there appears to be problems with using Amazon S3 via Flex. Are there any work arounds?

以下两个答案都很棒且有效,我都赞成(我不会为问题分配答案,因为它们都有效):

Both of the below answers are great and work, I've upvoted both (I'm not going to assign an answer to the question as they both work):

您可以通过 Flex 使用 Amazon S3 吗?

您可以通过 Flex 使用 Amazon S3 吗?

推荐答案

您可以对您在 Amazon S3 中控制的子域进行 CNAME(到具有子域名称的存储桶),如下所示:

You can CNAME a subdomain you control at Amazon S3 (to a bucket with the name of the subdomain), like so:

http://s3.ceejayoz.com/(转到我的 s3.ceejayoz.com'桶)

http://s3.ceejayoz.com/ (goes to my 's3.ceejayoz.com' bucket)

将您自己的 clientaccesspolicy.xml 文件上传到该存储桶的根目录(并将权限设置为全局可见)应该可以解决问题,如果我正确理解您的问题,因为它可以在 http://s3.ceejayoz.com/clientaccesspolicy.xml.

Uploading your own clientaccesspolicy.xml file to the root of that bucket (and setting the permissions to be globally viewable) should do the trick, if I'm understanding your question correctly, as it will be accessible at http://s3.ceejayoz.com/clientaccesspolicy.xml.

S3 文档中的更多信息:http://docs.amazonwebservices.com/AmazonS3/2006-03-01/index.html?VirtualHosting.html

More information in the S3 docs: http://docs.amazonwebservices.com/AmazonS3/2006-03-01/index.html?VirtualHosting.html

从这一点来看,您还可以使用没有 CNAME 的示例虚拟托管样式方法":http://bucketname.s3.amazonaws.com/clientaccesspolicy.xml

edit: From looking at that, you could also use the "Example Virtual Hosted Style Method" without a CNAME: http://bucketname.s3.amazonaws.com/clientaccesspolicy.xml

这篇关于您可以通过 Flex 使用 Amazon S3 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆