martinklepsch / s3-beam

🚀 direct-to-S3 uploading using ClojureScript
Eclipse Public License 1.0
92 stars 17 forks source link

Assert content type is not null #26

Closed danielcompton closed 8 years ago

danielcompton commented 8 years ago

I was constructing a File in the browser and hadn't given it a content type. s3-beam signed the request, but it wasn't valid when it was sent to S3. It would be good to add a client side assert that the File has a not null content-type to avoid this (I think).