This is for an intranet application. Users need to upload a file via a webpage and be able to access it through a web page, preferably the same one. It is basically working but I have a couple of issues. If I create the ‘Upload’ folder in the site when I publish the folders and contents get overwritten. If I have them upload to a folder outside of the site I can’t link to it. Is there a way to keep Visual Studio 2008 from overwritting the folder and files –OR– being able to link to files in the folders outside of the website? I would be elated to be able to do both.
My code works fine, my design may not. It doesn’t seem abnormal to do something like this so I would assume I am doing something stupid, or just missing something. Visual Studio’s erase everything before publish kills me, I must be missing something.
Thanks for your help, it is greatly appreciated.
Well, I would suggest to convert your web site to web application. It will save you lot of pain. Visual studio IDE treats Web Application in more friendly way.
Anyway, look at this similar issue:
Exclude files from web site publish in Visual Studio
And here is great comparison of Web site and Web application project:
ASP.NET Web Site or ASP.NET Web Application?
For me there are no doubts.