dtny30176 2014-10-24 22:59
浏览 32

为什么PUT不能像在S3上使用AWS PHP所宣传的那样工作

I've tried a number of different methods following examples from this website and other sources but I am hitting a brick wall. After failing to get this working after over a month of daily trying different things I have narrowed it down to the following using the latest version of the AWS SDK for aws-php-sdk-2.7.1. You think it would work right? What I am attempting to do is allow users to edit a web page using javascript, capture the markup in a Div and PUT it to a bucket using a signed URL on Amazon S3. I'm getting an error that my signature method is incorrect. Am I under the wrong conclusion that the SDK is supposed to do this work for me or am I doing something wrong. My Key and Password are working fine using JAVA with PUT yet I need a solution that works on the client side. Other schemes without the SDK used other means to sign the URL but I could not get those to work here either… I could really use some help. Thank you.

This is where I am currently.

My Cors on the bucket: ////////////////////////////////////////////////////////////

<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
    <CORSRule>
        <AllowedOrigin>*</AllowedOrigin>
        <AllowedOrigin>*:8443</AllowedOrigin>
        <AllowedMethod>GET</AllowedMethod>
        <AllowedMethod>PUT</AllowedMethod>
        <AllowedMethod>POST</AllowedMethod>
        <AllowedMethod>DELETE</AllowedMethod>
        <MaxAgeSeconds>3000</MaxAgeSeconds>
        <AllowedHeader>*</AllowedHeader>
    </CORSRule>
</CORSConfiguration>
  • 写回答

2条回答 默认 最新

  • duanlidi1051 2014-10-24 23:36
    关注

    As noted on the jQuery website (http://api.jquery.com/jquery.ajax/), not all browsers support "PUT" and "DELETE" requests.

    评论

报告相同问题?

悬赏问题

  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题