couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxepal <>
Subject [GitHub] couchdb-couch pull request: allow downloading docs/views
Date Sun, 29 Mar 2015 20:35:19 GMT
Github user kxepal commented on the pull request:
    In additional to "attachment" content disposition type, the filename attribute is strongly
recommended if you want to make this feature really user frieldly. Otherwise, browsers will
ask to download very strange things. For instance, you request `http://localhost:5984/db/doc`
=> browser will ask you to download file `doc`, while `doc.json` might be more friendly.
    For views there is the same story, but I think there need to include ddoc name into their
file as well: `http://localhost:5984/db/_design/orders/_view/by_date?limit=10&download=true`
=> browser asks to download file `orders-by_date.json`.
    Dealing with `filename` attribute will require a bit fines since it's not friendly for
unicode names. See for how they are processed.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message