GithubHelp home page GithubHelp logo

Comments (3)

runlevelsix avatar runlevelsix commented on July 19, 2024

I think I just answered my own question (with a little more testing).

It appears that the Postman REST client is making two requests (which I hadn't noticed before). Using curl on the command line produces only one request, and therefore only one file appears in my S3 bucket.

from jsreport-s3-storage.

fgauer avatar fgauer commented on July 19, 2024

Oh hey! Thanks for the note. I'm going to be dressing up the plugin a bit more at the request of Jan (jsreport creator), but just haven't had time yet. I'm enjoying jsreports and think it's really well done and worth investing some time into.

I'm thinking of adding returning a signedURL to the plugin. A co-worker of mine just showed me how to do it. So look for that potentially soon.

Best of luck and thanks again!

from jsreport-s3-storage.

runlevelsix avatar runlevelsix commented on July 19, 2024

Excellent!

I just did the same thing response.headers['s3-Link'] = s3.getSignedUrl('getObject', params);

My implementation is messy though, as I duplicated the AWS credentials if() block inside the promise's .then() - quick & dirty to get it done...

I also set my files to be uploaded with ACL: "private" by default as well. And set an Expires: option to the params to lock down the link's longevity a bit more.

from jsreport-s3-storage.

Related Issues (3)

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.