Git Product home page Git Product logo

Comments (5)

StanBoyet avatar StanBoyet commented on May 18, 2024

My bad, I'm pretty sure it's because I don't escape them while getting the signed url from my server ...

from react-s3-uploader.

seanadkinson avatar seanadkinson commented on May 18, 2024

Must be this line that is failing.

There must be restrictions on the encoding of characters for setting headers or something (I'm really not sure). Looks like this StackOverflow question says that only US-ASCII characters are allowed.

I went looking at the jquery source code to see if they do anything special when setting request headers, and here where they take in the headers, and here where they set them, neither does any encoding.

You could try to encodeURIComponents on the filename, but not sure that would be correct. If you come up with a solution, and want to submit a PR (or let me know what the solution is, and I can plug it in), we'd love to have it.

Thanks.

from react-s3-uploader.

StanBoyet avatar StanBoyet commented on May 18, 2024

http://stackoverflow.com/a/22935139/2726340
This replacement is basically what I'd like to implement, as I don't really want to decode/encode everytime either on server or client side. As it's not really standard, I don't think I should submit it... Though I'd like to have your input on how I could plug it in, as I "just" import your component, I can't manage this on my end... Or could I ?

Thanks

from react-s3-uploader.

seanadkinson avatar seanadkinson commented on May 18, 2024

Probably would need a PR for this. Just need to do some extra work on this line: https://github.com/odysseyscience/react-s3-uploader/blob/master/s3upload.js#L63

from react-s3-uploader.

seanadkinson avatar seanadkinson commented on May 18, 2024

Pushed v1.2.0 that addresses this issue.

from react-s3-uploader.

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.