Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
1.22/5 (2 votes)
See more: , +
Hi I am using Visual Studio 2008 (.NET framework 3.5), currently I am uploading images to my ASP.NET webforms application in c#. If some one copies my image url and opens in new window/tab then complete directory structure of my site is revealed to the user, some thing like http://domain.name/images/companylogo/logo599.jpg
I want to hide my directory structure and show image path something like:

http://www.zameen.com/common/resize.php?img=4/303088.jpg&d=&w=250&h=147&r=1
http://www.zameen.com/common/resize.php?img=7/165/bhurbun_continental_apartments_380.jpg&d=250&w=250&h=180&r=1
http://www.zameen.com/common/resize.php?img=2/156050.jpg&d=80&m=1

To hide my site directory structure I configured the imageshack API to upload images but requirements are like the path above. I am not getting how to manage the path format stated above. Thanks for any help.
Posted
Comments
SRS(The Coder) 18-Jun-14 2:45am    
This might help :-

http://weblogs.asp.net/scottgu/tip-trick-url-rewriting-with-asp-net
Kornfeld Eliyahu Peter 18-Jun-14 3:35am    
You may use my idea from here - http://www.codeproject.com/Tips/714181/Stream-Your-Documents-Using-Simple-Web-Page

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