I have a scenario where I need to upload a file from one web application and use it in another one. My setup is the following.
- One server, hosting two web applications in IIS - both are ASP.NET
- One of the applications is used to administer the other one + a bunch more stuff
- I need to upload a file from this admin app, save the path in DB through the DAL and then access the file from the other web app, which would provide the file for download
- I keep files on disk, only the path in DB
So where and how can I upload the file so that it can be accessed from both web applications? Should I use a service or is there some other way?
Here are some related questions I found, but I don't think they cover my particular scenario:
http://stackoverflow.com/questions/63146/how-to-handle-file-uploads-to-a-dedicated-image-server
http://stackoverflow.com/questions/51256/how-to-upload-a-file-to-a-wcf-service