How do I change a filename on-download with javascript?

后端 未结 6 1195
心在旅途
心在旅途 2021-02-02 16:03

The script adds a download link for videos (on a specific site). How do I change the filename to something else while downloading?

Example URL:
\"http://websit         


        
6条回答
  •  天涯浪人
    2021-02-02 16:42

    AFAIK, you will not be able to do this right from the client itself. You could first upload the file onto the server with the desired name, and then serve it back up to the end user (in which case your file name would be used).

提交回复
热议问题