Is it possible to attach a file name to a ipfs.io URL?

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

E.g., if I have

http://ipfs.io/ipfs/QmRZ97nBLWfjB9FcFLH48RuijWQwk3JUvRFrn1Wr5suZ11

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


Copied from original issue: https://github.com/ipfs/faq/issues/109

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.

PSA!
You can do this with ?filename=blah.xyz