简体   繁体   中英

How to share files between different web application

I have some images and PDFs which has to be shared between different web applications hosted on same IIS.
I have tried by creating a separate virtual directory and used the path in both applications.

Is there any other better way of doing this?

If it's for a website, is there a reason you couldn't just directly reference them through http? So on Domain 1:

<a href="domain1/doc1.pdf">Document 1 on domain 1</a>

And then on your second domain (domain 2):

<a href="domain1/doc1.pdf">Document 1 on domain 2</a>

Either way, are there so many of these resources that it's worth the trouble not to just upload separately to each app? That way you wouldn't be creating dependencies.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM