将文件上传到两个服务器 [英] upload file to both server
问题描述
大家好,
我有2台服务器来维护数据.
一台是内部服务器,一台是外部服务器.
我在网络上使用2键.配置以上传到本地服务器和Web服务器.
----------
WEB.CONFIG
< add key ="AttachmentFileShare"; value ="C:\ Attachments \ UploadedFiles \">
< add key ="AttachmentWebShare" value ="http://机器名称/实例名称/附件/UploadedFiles">
--------------
如何将文件上传到两个位置
请帮助.....非常紧急.....
在此先感谢
Hi Every one,
I have 2 servers to maintain data.
one is internal server and one is external server.
I am using 2 keys in web. config to upload into the local server and webserver.
----------
WEB.CONFIG
<add key="AttachmentFileShare"; value="C:\Attachments\UploadedFiles\">
<add key="AttachmentWebShare" value="http://Machinename/instancename/Attachments/UploadedFiles">
--------------
how to upload the file into both locations
please help ..... its very urgent.....
thanks in advance
推荐答案
对于内部服务器,您可以使用文件上传控件save直接保存它.
对于外部服务器,假设您具有完全访问权限,则可以 FTP文件在内部通过以下方式在其上a> [ ^ ]代码.
For internal server, you can directly save it using File upload control save.
For external server, assuming you have full access, you can FTP the files[^] on it internally via code.
这篇关于将文件上传到两个服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!