查看上传的音频和视频,但无法下载 [英] View uploaded audio and video but can not download

查看:91
本文介绍了查看上传的音频和视频,但无法下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我知道,如何在服务器上上传音频和视频文件.
现在,我希望该用户可以查看和收听来自服务器的音频和视频文件,但不能下载它.在ASP.Net中怎么可能?

请提出建议. :)
提前谢谢.
Rohit

Hi,

I know, how to upload audio and video file on server.
Now I want that user can view and listen the audio and video file from server but user can not download it. How is this possible in ASP.Net ?

Please suggest. :)
Thanks in advance.
Rohit

推荐答案

可以有很多方法可以做到这一点.一种简单的方法是,您可以使用您只知道的隐藏密钥,该密钥只​​有通过加密才能验证音频/视频请求是通过内部代码进行的.现在,允许读取代码并将其显示给用户,但是如果用户尝试,则他们将无法传递额外的隐藏密钥以及下载请求,因此它们将被拒绝.
There can be number of ways to do that. One simple way would be, you can use a hidden key known to you only might be encrypted that authenticates that the audio/video request is by code internally. Now code is allowed to read and display the same to users, but if user tried they wont be able to pass an extra hidden key along with request to download and hence they are denied.


这篇关于查看上传的音频和视频,但无法下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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