Thanks Vadim, your comments have been very useful. I didn't know the exact behavior of vuh files, but after taking a look at the
docs (Virtual URL Handlers section) it has been really easy to do what you suggested (the first option). I only needed to create a subdir in /packages/bboard/www with an index.vuh inside as simple as
ad_page_contract {
serve bboard attachment
} {
file_id:integer,notnull
}
ad_returnredirect "../attachment?file_id=$file_id"
... and modify the attachments link to make it appear with the real name of the file.
It works, at least with the couple of files that i've tested sing Mozilla 1.0.
You suggested to create an attachments_m.vuh file, but i read here in the forums that only the index.vuh works (at least in OACS 4.5), although i haven't tested that.
But... there's still one problem: the files with spaces in their file name. A file called "my file.swx" will appear in the save as dialog as "my%20file.swx", and i'm afraid this has no possible solution, hasn't it?
regards