Trimack
Trimack

Reputation: 4213

asp.net mvc app_data folder

I want to store a large number of images on a server gallery. I can create my own folder for that, but in the default template there is a folder named App_Data. Obviously, I imagine that creators of the template meant for us to store data there. But I can't find a way to open anything in that folder.

Is it intended? Or how do I do that? Or should I make my own folder for that reason?

Upvotes: 11

Views: 8880

Answers (1)

Kevin LaBranche
Kevin LaBranche

Reputation: 21078

It is by design. App_Data was meant for data files like sql express DB's files. It is protected so that you can't surf to it and grab files out of it. Put your images in another folder to correct this.

Upvotes: 24

Related Questions