Uploading a Design Document #454

wraithmonster opened this Issue Jan 16, 2012 · 6 comments


None yet
3 participants

Towards the bottom of the page http://guide.couchdb.org/draft/design.html, the syntax for uploading the design doc is wrong.

curl -X PUT -data-binarymydesign.json

should be

curl -X PUT -d @mydesign.json

as noted here http://stackoverflow.com/a/4418695/154065.

I also found that curl -X PUT --data-binary "@mydesign.json" works, but wraithmonster's suggestion seems easier to type and remember.


janl commented Feb 23, 2012

This has been fixed for a while in draft/

-d can lead to issues with larger files, hence our use of --data-binary.

janl closed this Feb 23, 2012

There's still a typo though.

-data-binarymydesign.json should be --data-binary @mydesign.json.


janl commented Feb 23, 2012

Where is that typo? If possible, please point to the source file :)

My mistake - it is fixed now at the source. Thanks!


janl commented Feb 23, 2012

No worries, thanks for the report. It should show up on the site as well (github pages ftw), make sure to clear your cache before reloading the page. I could get the latest Safari to shift-reload earlier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment