Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for 
change notification.

The "Return a document's attachment from inside a vhost and/or redirect" page 
has been changed by matiu.
The comment on this change is: fixed up a mistruth.
http://wiki.apache.org/couchdb/Return%20a%20document%27s%20attachment%20from%20inside%20a%20vhost%20and/or%20redirect?action=diff&rev1=1&rev2=2

--------------------------------------------------

  
  I first tried adding the ?with_attachments (or whatever it is) in a show 
function, but I thought, whoa! I'm gonna load 5 images into memory (in base64 
encoding no less) to just return one .. that's a bit sucky.
  
- So anyway, the docs say that rewrites are relative to _design/yourname .. but 
I checked the source and for rewrites that start with '..' at least, they're 
relative to _design/yourname/_rewrite (or whatever the rewrite thing is called) 
so to rewrite this rewrite rule works for me so people can see the attachement:
+ So anyway, the docs say that rewrites are relative to 
/dbname/_design/designname .. I expected ../ in a rewrite to return the '/db/' 
root, but it actually needs '../../':
  
  {{{
    {

Reply via email to