下载文件没有扩展问题 [英] Download file without extension issue

查看:108
本文介绍了下载文件没有扩展问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


Hi

Hi


我需要下载文件没有扩展名。文件本身是一个简单的纯文本文件。我是使用WebClient对象从代码中执行此操作的。我也无法在浏览器中以相同的错误查看此文件。错误是404 - 找不到文件。

I need to download file that does not have extension. The file itself is a simple plain text file. I do this from code using WebClient object. I also cannot view this file in browser with the same error.The error was 404 - file not found.


经过研究我添加了mime类型:   。*    as    web服务器级别的application / octet-stream。该文件还具有以下权限:

After research I added mime type:    .*    as    application/octet-stream on web server level. Also the file has these permissions:


NetworkService - 完全访问权限,ASP.NET - 完全访问权限。进行更改后重新启动机器。

NetworkService - full access, ASP.NET - full access. Rebooted machine after making changes.


仍然是同一个问题。

Still the same issue.


任何人都可以建议寻找其他什么?

Anybody can advise what else to look for?


非常感谢,

Thanks a lot,


Roman

Roman

推荐答案

如果无法查看文件在webbrowser中,文件夹或文件的权限不正确。 您可能必须共享 文件夹才能在浏览器中查看或能够下载。
If you can't view the file in a webbrowser then the permission of the folder(s) or file are not correct.  You probably have to make the folder shared to see it in a browser or to be able to download.


这篇关于下载文件没有扩展问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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