将文件从两个不同的应用程序上传到同一文件夹
是否可以从同一文件夹中的不同 Web 应用程序上传文件。 应用程序A对应一个注册页面,应用程序B管理员可以跟踪应用程序A中注册的每个人。 问题是应用程序 B 的管理员无法看到应用程序 A 中上传的文档,因为它们上传到不同的文件夹中。 如何将应用A上传的文件保存到应用B的de文件夹中?
Is it possible to upload files from different web applications in a same folder.
Application A corresponds to a register page, and application B administrator can track every person is register in application A.
The problem is that administrator of app B cannot see the documents uploaded in app A since they where uploaded in a different folder.
How can I save the uploaded files of app A into de folder of app B.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通常的方法是在两个应用程序之外有一个他们都可以看到的公共文件夹。在 IIS 内部,您可以将其设置为每个应用程序中的虚拟目录。
从应用程序的角度来看,该文件夹似乎位于其根路径的本地。但是,它物理存储在其他地方。
步骤
从应用程序 A 中,更改您的虚拟目录。代码将文件保存到该目录。从应用程序 B 更改代码以从该目录中提取文件。
The usual way of doing this is to have a common folder outside of both applications that they can both see. Inside of IIS you set this up as a virtual directory in each application.
From the applications perspective, it looks like the folder is local to it's root path. However, it's physically stored elsewhere.
Steps
From Application A, change your code to save your files to that directory. From Application B change the code to pull the files from that directory.