954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Auto Generating URL's

I want to have one section in my web site where the users can upload their files (picture, songs, videos etc.), what I want to do is that whenever a user uploads any file, say for example I have uploaded one file named "My Best Picture.jpg", when anybody clicks on the "Show Files" link, the picture that I have just uploaded("My Best Picture.jpg") should appear in that list with the URL to that picture being automatically generated, so that when anybody click on the File name("My Best Picture.jpg"), the person should be redirected to that URL. How can I perform this task?

tapandesai007
Light Poster
28 posts since Aug 2011
Reputation Points: 10
Solved Threads: 0
 

You can save the file to in the file system. When generating URL use HttpRequest.ApplicationPath and add the file name to the add. This will be your URL to the picture.

Tellalca
Posting Whiz in Training
209 posts since Mar 2010
Reputation Points: 29
Solved Threads: 24
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: