Comments (7)
Are you sure the name of your bucket is my-bucket
?
POST https://my-bucket.s3-eu-west-1.amazonaws.com/ net::ERR_CONNECTION_RESET
from s3-beam.
It's not, I changed the name of the bucket for privacy (since at the moment it has a very permissive policy).
from s3-beam.
Your CORS configuration looks alright.
Is your bucket located in s3-eu-west-1
? In 0.1.0
this was not customisable. If your bucket is in another zone I recommend you update to 0.2.0
which introduces an additional aws-zone
parameter. See the changelog in the Readme for details.
from s3-beam.
Thanks for your update, I got it working!
For the bucket location, I had to use the generic s3
instead of s3-eu-west-1
. Do you know why my bucket didn't have a zone attached to it?
Also, I had to add in
(extend-type js/HTMLCollection
ISeqable
(-seq [array] (array-seq array 0)))
to work around the "HTMLCollection is not seqable"
error in the line (first (.getElementsByTagName (.getResponseXml (.-target res)) "Location"))
.
from s3-beam.
Do you know why my bucket didn't have a zone attached to it?
No. As far as I understand buckets must be associated with a region.
(extend-type js/HTMLCollection
ISeqable
(-seq [array] (array-seq array 0)))
Good catch. I probably had this in the project I was using it so I didn't notice that it'd break without that extend-type statement.
It's probably a good idea to use (aget (.getElements... ) 0)
here instead of first
.
PR welcome! 😄
from s3-beam.
You can now use [org.martinklepsch/s3-beam "0.2.1"]
which uses aget
instead of first
.
from s3-beam.
Thanks! You beat me to the pull request :)
from s3-beam.
Related Issues (20)
- Internet Explorer 9 support? HOT 5
- readme needs adjument? (custom signing url) HOT 2
- upload progress HOT 23
- Errors HOT 9
- Way to extend headers and parameters sent to signing endpoint on server HOT 2
- clojars release HOT 2
- Assert content type is not null
- Provide acl in headers rather than form data? HOT 1
- Cut a new release? HOT 3
- Add support for Signature Version 4 HOT 3
- Use AWS Java SDK for signing URL HOT 2
- Refactor into a callback based API and layer core.async on top? HOT 2
- Don't use `first` with HTMLCollection
- JavaScript Equivalent HOT 2
- setting "Content-Dispoition": "attachment" ? HOT 4
- re-frame component HOT 1
- aws-zone not required when passing custom upload-url HOT 7
- Switch to using virtual-host style URLs when possible HOT 1
- Reagent/Re-frame example? HOT 2
- us-east-1 zone must be set to "s3" in server side configuration. HOT 5
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 s3-beam.