0

I'm using the App_Data folder for uploaded images.

This is because each image is given an ID in the database, and stored in several formats.

I therefore create a directory with the ID as its name, and put all the formats inside it, like this:

App_Data/1/original.jpg
App_Data/1/thumbnail.jpg

And so forth.

This is done because I can delete the directory "1" without causing an application restart.

However I still want to show these images on my site, and App_Data cannot be read by default.

Is there anyway to grant read access to this folder ?

Until now I've been using a generic handler to serve the images, but that's quite an overhead

John Saunders
  • 160,644
  • 26
  • 247
  • 397
Steffen
  • 13,648
  • 7
  • 57
  • 67

0 Answers0