Is it possible to attach a file name to a URL?

From @stefanv on Fri Apr 15 2016 00:26:39 GMT+0000 (UTC)

E.g., if I have

Is there a way to make generate a Content-Disposition + filename header?

Copied from original issue:

From @lgierth on Fri Apr 15 2016 00:28:33 GMT+0000 (UTC)

Only if you’ve wrapped it in a directory – e.g.:

> ipfs add -w file.txt
> ipfs add -r .

From @salsa-dev on Sun Apr 17 2016 20:55:42 GMT+0000 (UTC)

I’m wrapping directories with:
ipfs add -rw directory/
which is exactly what I need.

You can do this with ?