Giter VIP home page Giter VIP logo

Comments (4)

tedchsk avatar tedchsk commented on August 16, 2024
<ReactS3Uploader
                className = "upload-img-input-btn form-control center-block"
                signingUrl="/api/s3/sign"
                accept="image/*"
                onProgress={this.onUploadProgress.bind(this)}
                onError={this.onUploadError}
                onFinish={this.onUploadFinish.bind(this)}
                signingUrlHeaders={{ additional: 'Access-Control-Allow-Origin'}}
                uploadRequestHeaders={{ 'x-amz-acl': 'public-read' }}
                contentDisposition="auto"
            />

from react-s3-uploader.

seanadkinson avatar seanadkinson commented on August 16, 2024

No functionality currently built to support this, but it can be easily added. Just need to support an optional filekey modifier/processor function, which would let you change the filekey based on the session or whatnot. Code would be plugged in right around here: https://github.com/odysseyscience/react-s3-uploader/blob/master/s3router.js#L69

I don't have time to build this right now, but if you want to take a stab at a PR, I'll be happy to merge and release.

from react-s3-uploader.

tedchsk avatar tedchsk commented on August 16, 2024

I can manually set it now. I also forked it. Don't know if I did it correctly though. haha

Thank you again.

from react-s3-uploader.

seanadkinson avatar seanadkinson commented on August 16, 2024

Just released v4.0.0 which changes the filename scrubbing logic, and provides a simple way to add custom scrub logic. Check out the updated documentation if you still need this functionality.

Thanks

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.