Code Monkey home page Code Monkey logo

directo's People

Contributors

kfirba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

directo's Issues

Big files upload

Hello!

is there any config that could be set to make files > 5gb upload correctly to s3? it seems it ust be multiparted uploaded.

Thanks

Fineuploader integration issue

thank you for this package,

Iam using Fineuploader's s3 mode and Iam generating the signature and policy (endpoint) for V4 on backend using this package, and this package uses its own policy inputs when singing the policy:

$policy = [
            'expiration' => $this->expirationDate(),
            'conditions' => [
                ['bucket' => $this->bucket],
                ['acl' => $this->options->acl],
                ['starts-with', '$key', $this->options->valid_prefix],
                [$contentTypePrefix, '$Content-Type', $this->options->content_type],
                ['content-length-range', 0, $this->mbToBytes($this->options->max_file_size)],
                ['success_action_redirect' => $this->options->success_action_redirect],
                ['success_action_status' => $this->options->success_action_status],
                ['x-amz-credential' => $this->credentials->AMZCredentials()],
                ['x-amz-algorithm' => 'AWS4-HMAC-SHA256'],
                ['x-amz-date' => gmdate('Ymd\THis\Z', $this->time)]
            ]
        ];

Fineuploader by default will set request payload for the file Iam trying to upload ( which is different from the policy I signed using this package):

{"expiration":"2018-03-16T09:10:45.082Z",
"conditions":
\[{"acl":"private"},
{"bucket":"bucket-name"},
{"Content-Type":"image/jpeg"},
{"success\_action\_status":"200"},
{"x-amz-algorithm":"AWS4-HMAC-SHA256"},
{"key":"37f86eae-46e9-4047-91c1-c8ee2cbf90b6.jpg"},
{"x-amz-credential":"GWRQRFFXBA3C3S7GOVQQ/20180316/eu-central-1/s3/aws4\_request"},
{"x-amz-date":"20180316T090545Z"},
{"x-amz-meta-qqfilename":"JPG-GG\_400x400.jpg"},
\["content-length-range","0","23424"\]\]}

so for example , Fineuploader will set x-amz-date: 20180316T090545Z in request payload for the file and this package will set some different value for x-amz-date, so when I try to upload the file I will face many errors, like:
policy doesn't match ... etc ..

Is there any workaround?

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.