How to construct a full download link from a filename