Hi I am unsure how to do this, I am using shared hosting. I have a virtual directory at http://www.example.com/images. This directory is actually a folder on the server assets/images whereas my site is at /httpdocs (httpdocs and assets folder are at the same level).
How can I save files to this folder and then access using eg /images/foo.jpg?
httpdocs/
--web.config
--default.aspx
--etc
assets/
--images/
----foo.jpg
You can save files normally (using FileStream
s or other things).
Call Server.MapPath("~/httpdocs")
to get the path on disk.