提示用户将文件保存到特定位置

提示用户将文件保存到特定位置

问题描述:

我正在创建一个生成文本文件的网站。我想让用户将文件保存到特定的文件夹(它是一个视频游戏的备份文件)。

I'm creating a website that generates a text file. I would like for the user to save the file to a specific folder (it's a backup file for a video game).

是否可以通过PHP或HTML更改保存文件的默认文件夹? C#,而不是我的第一选择,也是可以接受的。

Is it possible to change the default folder the file is saved to via PHP or HTML? C#, while not my first pick, would also be acceptable.

如果我理解正确,不可以默认为某个位置在用户电脑上。这只是一个你无法解决的安全问题。

If I understand correctly, NO you cannot default to a location on the users computer. This is just a security piece that you cannot get around.

尝试在用户下载前对用户进行教育。这是最好的方法。

Try educating the user before they download. That's the best way.