Comments (3)
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsreport-s3-storage.