Coder Social home page Coder Social logo

Comments (3)

nukulb avatar nukulb commented on June 9, 2024

Is your bucket setup for accepting requests from *

I have a readme here for bucket configuration
https://github.com/hubba/s3-angular-file-upload

Sent from my iPhone

On Jun 19, 2014, at 6:56 PM, Jayr Motta [email protected] wrote:

I'm trying to integrate my frontend with S3 and thus I've decided to use this directive to help.

I have coded the config as instructed in the README and something like this is being returned:

{"policy":"eyJleHBpcmF0aW9uIjogIjIwMjAtMTItMDFUMTI6MDA6MDAuMDAwWiIsImNvbmRpdGlvbnMiOiBbIHsiYnVja2V0IjogImRlZmluYS1zZS12aWRlb3MifSxbInN0YXJ0cy13aXRoIiwgIiRrZXkiLCAiIl0seyJhY2wiOiAicHJpdmF0ZSJ9LFsic3RhcnRzLXdpdGgiLCAiJENvbnRlbnQtVHlwZSIsICJ2aWRlb3MvIl0sWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsIDAsIDQxOTQzMDQwXV19","signature":"4eIITW8OqmP2h2w5XDl8Rlm6fp0=","key":"4wv9VESYHOGyk7/lyKKMsH1l7MgH/qyfpKeAkCyY"}
Before applying the encryption my policy was:

{"expiration": "2020-12-01T12:00:00.000Z","conditions": [ {"bucket": "defina-se-videos"},["starts-with", "$key", ""],{"acl": "private"},["starts-with", "$Content-Type", "videos/"],["content-length-range", 0, 41943040]]}
But when I run the html with the following configuration, I see a pre-flight request being made and nothing else happens:

I'm selecting a file that fits on the content length I've configured and I have also tried changing acl, adding a prefix, etc..

Do you have any tip to help me figure out what is happening?

Thanks in advance!


Reply to this email directly or view it on GitHub.

from ng-s3upload.

captainmarkos avatar captainmarkos commented on June 9, 2024

Check out this wiki page I made as it might help you out:
https://github.com/asafdav/ng-s3upload/wiki/PHP-Creating-the-S3-Policy

from ng-s3upload.

asafdav avatar asafdav commented on June 9, 2024

Did you figure it out?

On Fri, Jun 20, 2014 at 2:32 AM, captainmarkos [email protected]
wrote:

Check out this wiki page I made as it might help you out:
https://github.com/asafdav/ng-s3upload/wiki/PHP-Creating-the-S3-Policy


Reply to this email directly or view it on GitHub
#27 (comment).

from ng-s3upload.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.