I have a web server on Windows Server 2008 running IIS7.
One on of my web sites, I have a folder which contains images which users can view with my mobile phone app. Unless I set the correct permissions on the images, they get:
401 - Unauthorized: Access is denied due to invalid credentials.
So I set the permissions ('Everyone' can read the files) and can then view the images.
The problem is, I run a script to download these images from another source and place them in this folder. The updated images then don't have the appropriate permissions any more. Back to square one!
Is there a way to set this folder so any file that is created in that folder has the permissions that I require?