当前位置: 动力学知识库 > 问答 > 编程问答 >

asp.net mvc - MVC3: Best approach on where to store small images on webserver which can be uploaded and deleted by user.?

问题描述:

I have implemented upload/delete Logo functionality in my MVC3/C# WebApp. Where would be the correct folder to store these? I am currently using "Uploads/Logos" off root. Now of course the folder permissions prevent me from deleting files which got me thinking as to whether this is the correct place. Perhaps it should be in the "Content" or "App_Data" folder ??

Thoughts appreciated?

Thanks.

网友答案:

If you are linking to the files directly, then you cannot place them in the App_Data folder as any request to an item in App_Data will be rejected.

分享给朋友:
您可能感兴趣的文章:
随机阅读: