fake-s3 icon indicating copy to clipboard operation
fake-s3 copied to clipboard

made post work with dropzone.js

Open killerham opened this issue 9 years ago • 5 comments

Some CORS headers were missing for use with dropzone.js post functionality when using presigned post.

killerham avatar Apr 12 '15 01:04 killerham

@killerham we ran into the same problem some weeks ago: this is better solved by using an updated dropzonejs so that you can disable these headers. @phoet fixed this in https://github.com/enyo/dropzone/commit/441bb4c95a0801be38e6627e80cb50153f159358, it's already in dropzone stable. Just needs a new release with compiled files.

seichner avatar May 05 '15 11:05 seichner

i'm not super familiar with the s3 bucket configuration, but AFAIK you can set the allowed headers etc yourself: http://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html

so it would be good to either be less restrictive (allow * for all the things) or make those options configurable. same is true for content-type.

phoet avatar May 06 '15 07:05 phoet

I think changing it to "*" would be best. @killerham Hamed, what do you think?

pickhardt avatar Dec 22 '16 05:12 pickhardt

Making it * would be easier I think

killerham avatar Dec 22 '16 17:12 killerham

+1 for '*' in allowed headers. I need to support multi-part uploads using evaporate-js. The latter relies on 'x-amz-content-sha256' header.

Update: evaporate-js uses 3 headers: Content-MD5, X-AMZ-Content-SHA256 and X-AMZ-Date. Additionally, Chrome Canaray does not support today a wildcard '*' in 'Access-Control-Allow-Headers', so I had to list all the headers manually.

korya avatar Jan 31 '17 21:01 korya