GithubHelp home page GithubHelp logo

Comments (5)

seanadkinson avatar seanadkinson commented on May 19, 2024

What kind of data are you wanting to validate, and how? If you are trying to validate the uploaded file, you would need to download the file from S3 and validate. Make sense? Let me know if I don't understand your use case. Thanks.

from react-s3-uploader.

henryboldi avatar henryboldi commented on May 19, 2024

I want to do something like explained here: http://stackoverflow.com/questions/8903854/check-image-width-and-height-on-upload-with-javascript

If I had access to the file, I could use a local URL of the image and, therefore, be able to validate it before uploading to s3.

from react-s3-uploader.

seanadkinson avatar seanadkinson commented on May 19, 2024

I see. We had a PR for adding files to callbacks, but the author hasn't fixed it up yet.

I just created and pushed a branch named callback-files with the desired behavior from that PR. Basically all the callbacks get the file as the last argument.

Try referencing this branch from your package.json like so:

"react-s3-uploader": "odysseyscience/react-s3-uploader#callback-files"

Let me know if that gives you what you want, and I'll see about pushing an update.

from react-s3-uploader.

henryboldi avatar henryboldi commented on May 19, 2024

The callback-files branch works perfectly. Thanks so much, Sean! ๐Ÿ˜„

from react-s3-uploader.

seanadkinson avatar seanadkinson commented on May 19, 2024

Pushed v1.1.18 with the changes. Thanks for opening the 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.