是否可以使用App_Data文件夹上传和访问图像或word文件 [英] Is it possible to use App_Data folder for uploading and accessing image or word files

查看:78
本文介绍了是否可以使用App_Data文件夹上传和访问图像或word文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我们可以使用App_Data文件夹上传普通图像或word文件

此文件夹是否存在任何安全问题或者可以配置用于上传和访问文件夹。

Hi
Can we use App_Data folder to upload normal image or word files in
is there any security issues with this folder or it can be configured to use for upload and access folder.

推荐答案

App_Data文件夹是为数据库文件等数据保留的特殊文件夹,不会呈现任何内容在网上。这是设计的,有意的,不能改变。



如果你可以在Content文件夹中创建一个文件夹(例如上传文件)并使用它上传它会更好您的文件。然后您的用户可以访问该文件夹的内容。



检查如何完成它: 无法访问存储在App_Data文件夹中的图像
The App_Data folder is a special folder reserved for data such as database files and so on, and will NOT render out any contents on the web. This is by design, and intentional and cannot be changed.

It's better if you can create a folder (eg. uploads) inside the Content folder and use that for uploading your files.Then your users can access the content of that folder.

Check how can be done it :Unable to access images stored inside my App_Data folder


这篇关于是否可以使用App_Data文件夹上传和访问图像或word文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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