如何授予保存文件的权限 [英] How to give the permission to save file

查看:117
本文介绍了如何授予保存文件的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我需要实现一个非常好的功能.....用户从互联网上下载一个文件,当时要求保存文件用户想要的地方。



.net服务器端需要生成文件,我们需要授权用户保存文件。



请帮助我们。



谢谢,

Hub

Hi All,

I need to implement a fucnctionality like .....user downlaod a file from internet at that time it is asking to save the file where ever user wants.

The .net server side need generate the file and we need to give the permission to user to save the file.

Please help us.

Thanks,
Hub

推荐答案

您无法从服务器端授予客户端文件夹权限。如果可以这样做,你将控制互联网上的某个人访问/删除/运行你电脑中的文件!

你可以尝试用一种客户端脚本语言但它又是依赖在浏览器设置和用户首选项上。因此,您最好将应用程序设计更改为不依赖于客户端文件夹或文件夹位置。



检查以下CP问题:

如何在asp.net中打开另存为对话框 [ ^ ]

以及教程:

从ASP.Net中的SQL Server数据库上传和下载文件 [ ^ ]

演示 [ ^ ]

请注意,在上面,是否显示文件保存对话框取决于浏览器首选项。
You can't give client side folder permission from server side. if it is can be done, you will giving control to someone in the internet to access/delete/run file in your computer!
you can try with one of client side scripting language but it is again depend on the browser settings and the user preferences. so you better change your application design to without depending on client side folder or folder location.

check below previous CP question:
how to open save as dialog box in asp.net[^]
and also below tutorial:
Upload and Download files from SQL Server Database in ASP.Net[^]
Demo[^]
Note that in above, whether file save dialog showing or not depend on the browser preferences.


这篇关于如何授予保存文件的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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