简体   繁体   中英

Change the filename of a downloaded file hosted on another website

Is it possible to create a download link for a file on another site and change the file name? Can it be done without proxying it through my server? I'd like to achieve it without any additional bandwidth cost if possible.

EDIT: Just an idea but can it be achieved with a flash downloader of sorts?

You could fake it using a header redirect header("Location:http://....."); but the download process will probably show the real URL nevertheless - will depend on the client.

There is the Content-Location header but according to this blog post , it is used to specify an alternative location for the same content about to be received here , which makes it useless as a redirection tool.

The only other way I know is indeed through proxying.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM