Click here to Skip to main content
15,889,863 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to know about the url base authentication in my application http://localhost:1619/profilepic/user_image.png

What I have tried:

<location path="profilepic">
    <system.web>
      <authorization>
            <allow users="user"/>
            <deny users="*" />
      </authorization>
    </system.web>
  </location>


this will work in the case of foler. I want to restrict the files of that folder
Posted
Updated 12-Mar-19 17:00pm
v2

1 solution

Place all the image files in the folder >> App_Data
and return the image file as encoded base64 data source in the html page.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900