提示用户将文件保存到特定位置 [英] Prompt user to save file to a specific location

查看:103
本文介绍了提示用户将文件保存到特定位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

这篇关于提示用户将文件保存到特定位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆