473,231 Members | 1,591 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,231 software developers and data experts.

Best architecture - upload file and save on different server

Hi,

We need to allow webusers to upload a file on our website (on Server3, all
servers run Server 2003, remotely hosted) and eventually save it on our SBS
Server (Server2) which is not exposed through our firewall. We have another
server (Server1) within the SBS domain that is exposed through port 80 of
the firewall on which we host some web services and images.

What is the best architecture for getting the file from the remotely hosted
web site (Server3) to our SBS Server (Server1). We have a 3.5mbs
connection. I had intended to use a webservice to receive a stream from the
HTMLInputControl and save that but there seem to be some security issues I
don't know how to overcome. My best alternative so far is to redirect the
upload to my Server 1 and save the file using the File1.SaveAs method. Then
use a FileSystemWatcher to move the file to Server2.

Any suggestions would be greatly appreciated. Thanks,

Pat
Nov 18 '05 #1
6 3959
"Pat Carden" <pc*****@bellsouth.nospam.net> wrote in
news:eN**************@TK2MSFTNGP10.phx.gbl:
What is the best architecture for getting the file from the remotely
hosted web site (Server3) to our SBS Server (Server1). We have a
3.5mbs connection. I had intended to use a webservice to receive a
stream from the HTMLInputControl and save that but there seem to be
some security issues I don't know how to overcome. My best
alternative so far is to redirect the upload to my Server 1 and save
the file using the File1.SaveAs method. Then use a FileSystemWatcher
to move the file to Server2.

Any suggestions would be greatly appreciated. Thanks,


Why don't you have Server2 or Server1 poll Server3 occasionally to see if
there are new files?

That way there are no incoming connections.

Nov 18 '05 #2
Accept the upload on server 1, either with upload to an aspx page or via a
webservice. Then use a windows service to FTP the file to server two (find
a secure ftp client to automate if you need to). Dont allow the ftp port
through the firewall and that way you only have port 80 open at your public
side, and its hard to hack through port 80 to another port on a different
machine if you have your machines well patched.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Pat Carden" <pc*****@bellsouth.nospam.net> wrote in message
news:eN**************@TK2MSFTNGP10.phx.gbl...
Hi,

We need to allow webusers to upload a file on our website (on Server3, all
servers run Server 2003, remotely hosted) and eventually save it on our SBS Server (Server2) which is not exposed through our firewall. We have another server (Server1) within the SBS domain that is exposed through port 80 of
the firewall on which we host some web services and images.

What is the best architecture for getting the file from the remotely hosted web site (Server3) to our SBS Server (Server1). We have a 3.5mbs
connection. I had intended to use a webservice to receive a stream from the HTMLInputControl and save that but there seem to be some security issues I
don't know how to overcome. My best alternative so far is to redirect the
upload to my Server 1 and save the file using the File1.SaveAs method. Then use a FileSystemWatcher to move the file to Server2.

Any suggestions would be greatly appreciated. Thanks,

Pat

Nov 18 '05 #3
Could you elaborate on polling the remote server and then on the techniques
used to move the file?
Pat

"Anon-E-Moose" <an**********@yahoo.com> wrote in message
news:Xn********************************@140.99.99. 130...
"Pat Carden" <pc*****@bellsouth.nospam.net> wrote in
news:eN**************@TK2MSFTNGP10.phx.gbl:
What is the best architecture for getting the file from the remotely
hosted web site (Server3) to our SBS Server (Server1). We have a
3.5mbs connection. I had intended to use a webservice to receive a
stream from the HTMLInputControl and save that but there seem to be
some security issues I don't know how to overcome. My best
alternative so far is to redirect the upload to my Server 1 and save
the file using the File1.SaveAs method. Then use a FileSystemWatcher
to move the file to Server2.

Any suggestions would be greatly appreciated. Thanks,


Why don't you have Server2 or Server1 poll Server3 occasionally to see if
there are new files?

That way there are no incoming connections.

Nov 18 '05 #4
1. So use a Windows service so authentication is not a problem?? Please
confirm this is the reason for the Windows service.
2. Could the Windows service use the File.IO class to move the file from
Server1 to Server2?

"John Timney (Microsoft MVP)" <ti*****@despammed.com> wrote in message
news:up**************@TK2MSFTNGP09.phx.gbl...
Accept the upload on server 1, either with upload to an aspx page or via a
webservice. Then use a windows service to FTP the file to server two
(find
a secure ftp client to automate if you need to). Dont allow the ftp port
through the firewall and that way you only have port 80 open at your
public
side, and its hard to hack through port 80 to another port on a different
machine if you have your machines well patched.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Pat Carden" <pc*****@bellsouth.nospam.net> wrote in message
news:eN**************@TK2MSFTNGP10.phx.gbl...
Hi,

We need to allow webusers to upload a file on our website (on Server3,
all
servers run Server 2003, remotely hosted) and eventually save it on our

SBS
Server (Server2) which is not exposed through our firewall. We have

another
server (Server1) within the SBS domain that is exposed through port 80 of
the firewall on which we host some web services and images.

What is the best architecture for getting the file from the remotely

hosted
web site (Server3) to our SBS Server (Server1). We have a 3.5mbs
connection. I had intended to use a webservice to receive a stream from

the
HTMLInputControl and save that but there seem to be some security issues
I
don't know how to overcome. My best alternative so far is to redirect
the
upload to my Server 1 and save the file using the File1.SaveAs method.

Then
use a FileSystemWatcher to move the file to Server2.

Any suggestions would be greatly appreciated. Thanks,

Pat


Nov 18 '05 #5
I was able to use the HTTPPostedFile.SaveAs method on Server1 to save the
file on Server2 with the path, "\\server2\filename", which I thought was not
allowed but it worked. So this seems like a simple and effective approach.
Any securitiy issues?

"John Timney (Microsoft MVP)" <ti*****@despammed.com> wrote in message
news:up**************@TK2MSFTNGP09.phx.gbl...
Accept the upload on server 1, either with upload to an aspx page or via a
webservice. Then use a windows service to FTP the file to server two
(find
a secure ftp client to automate if you need to). Dont allow the ftp port
through the firewall and that way you only have port 80 open at your
public
side, and its hard to hack through port 80 to another port on a different
machine if you have your machines well patched.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Pat Carden" <pc*****@bellsouth.nospam.net> wrote in message
news:eN**************@TK2MSFTNGP10.phx.gbl...
Hi,

We need to allow webusers to upload a file on our website (on Server3,
all
servers run Server 2003, remotely hosted) and eventually save it on our

SBS
Server (Server2) which is not exposed through our firewall. We have

another
server (Server1) within the SBS domain that is exposed through port 80 of
the firewall on which we host some web services and images.

What is the best architecture for getting the file from the remotely

hosted
web site (Server3) to our SBS Server (Server1). We have a 3.5mbs
connection. I had intended to use a webservice to receive a stream from

the
HTMLInputControl and save that but there seem to be some security issues
I
don't know how to overcome. My best alternative so far is to redirect
the
upload to my Server 1 and save the file using the File1.SaveAs method.

Then
use a FileSystemWatcher to move the file to Server2.

Any suggestions would be greatly appreciated. Thanks,

Pat


Nov 18 '05 #6
Use the windows service so the actual stages in the process remain
disconnected and therefore less vulnerable, hence the FTP on a different
port with a different set of credentials to the asp account.

You could use the file IO class if the service was running with enough
permissions to map to the remote server. For security howver file paths are
more vulnerable. For IO, you would be more secure doing a one way read only
file pull from server 2 to server 1.

If you used asp.net to save the posted file to another server you would
likely be running the asp.net process with enough permissions on the account
to mount a share on the remote machine - if that account gets compromised
the hacker has the permissions to mount the remote server too. This is less
secure but probably as easy to implement.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Pat Carden" <pc*****@bellsouth.nospam.net> wrote in message
news:eH**************@TK2MSFTNGP10.phx.gbl...
1. So use a Windows service so authentication is not a problem?? Please
confirm this is the reason for the Windows service.
2. Could the Windows service use the File.IO class to move the file from
Server1 to Server2?

"John Timney (Microsoft MVP)" <ti*****@despammed.com> wrote in message
news:up**************@TK2MSFTNGP09.phx.gbl...
Accept the upload on server 1, either with upload to an aspx page or via a webservice. Then use a windows service to FTP the file to server two
(find
a secure ftp client to automate if you need to). Dont allow the ftp port through the firewall and that way you only have port 80 open at your
public
side, and its hard to hack through port 80 to another port on a different machine if you have your machines well patched.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Pat Carden" <pc*****@bellsouth.nospam.net> wrote in message
news:eN**************@TK2MSFTNGP10.phx.gbl...
Hi,

We need to allow webusers to upload a file on our website (on Server3,
all
servers run Server 2003, remotely hosted) and eventually save it on our

SBS
Server (Server2) which is not exposed through our firewall. We have

another
server (Server1) within the SBS domain that is exposed through port 80 of the firewall on which we host some web services and images.

What is the best architecture for getting the file from the remotely

hosted
web site (Server3) to our SBS Server (Server1). We have a 3.5mbs
connection. I had intended to use a webservice to receive a stream from
the
HTMLInputControl and save that but there seem to be some security

issues I
don't know how to overcome. My best alternative so far is to redirect
the
upload to my Server 1 and save the file using the File1.SaveAs method.

Then
use a FileSystemWatcher to move the file to Server2.

Any suggestions would be greatly appreciated. Thanks,

Pat



Nov 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Grace | last post by:
Hello, I want to upload the file by webpage to SQL Server. When I upload the small file, it is work. But, when I upload big file(ex. 40~50 MB), it isn't work; the Browser displays the...
18
by: Jen | last post by:
I'm using Microsoft's own VB.NET FTP Example: http://support.microsoft.com/default.aspx?scid=kb;en-us;832679 I can get the program to create directories, change directories, etc., but I can't...
15
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the...
1
by: Marko Vuksanovic | last post by:
I used the following code for implementing a file upload progress indicator, using UpdateProgress Panel, though I have a problem that FileUpload.Has File always returns false. Any suggestions what...
0
by: dann2 | last post by:
hello, i try to upload in an access db two pictures at the same time. i use the adjusted sample code from persits. it looks like this: ... '<% ' Create an instance of AspUpload object 'Set...
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
18
jhardman
by: jhardman | last post by:
Have you ever wanted to upload files through a form and thought, "I'd really like to use ASP, it surely has that capability, but the tutorial I used to learn ASP didn't mention how to do this."? ...
2
by: hotflash | last post by:
Hi All, I found the best pure ASP code to upload a file to either server and/or MS Access Database. It works fine for me however, there is one thing that I don't like and have tried to fix but...
7
by: dragiton | last post by:
SA Upload SQL Database variable types (image upload and storage) I am having trouble with the SA Upload utility. The following code used to work correctly. However, I lost my database and had to...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.