Forum OpenACS Development: Re: cr_write_content filename header
There is no requirement that an item stores using filesystem storage have the original filename stored are cr_items.name, so you can't reliably set the attachment header with the correct download filename unless you know how you stored it.
The file.vuh handler deals with this by allowing a filename to be appended to the URL ie:
the image vuh handler also allows this.
In this way the code that generates the URLs, if it has the correct filename information, can set the URL with the proper filename.
I don't really have a strong opinion either way, but automatically setting the attachment header is cr_write_content will most likely cause some unexpected behavior somewhere.