I am allowing users to download a file from another server just by giving them the link.
However, the files are always named ‘file.zip’ when users try to download it. I was hoping I could use maybe JavaScript to rename the file for them to something more appropriate.
How can I do this? Is this possible?
Would appreciate any help.
Thanks all
UPDATE
How about saving that file to my server and as I do this, let the users download it? Can users start downloading an un-fully downloaded file?
No its not possible, the file.zip will be in the Content-Disposition header sent by the server, there is nothing you can do in Javascript to intercept and modify it.