Split folder between two Asp.Net web applications in one solution

I am currently working on an Asp.net MVC web application. There are two projects in my solution: front office and back office. I would like to share a folder that will contain resources like images, documents, etc. that will be uploaded via a web application.

For example, when I upload an image using the back office, I only need to store the name of the image in my database, so I can use that image in my front office. So I need to split the folder between both of my apps.

Thanks for answers!

+2


source to share


2 answers


Since you have two Applications, I think the best thing to do is to create a new virtual directory that maps to this folder (where the files are) in the second application, and then write an HttpHandler that gets the files from there.



+1


source


You can use a branch in your source control environment if that's what you are asking for.



-Shaun

0


source







All Articles