Click to See Complete Forum and Search --> : Help! FTP to another server


kothreat
May 22nd, 2003, 05:09 PM
Hi all gurus,

I'm trying to coming up with an approach to solve an FTP problem.

We use the Verizon online hosting service for our web application. They provide ASP server. They also allow Cgi-Bins.

We wish to have a webpage that allows the user to upload images. But since we don't have enough space for the online account, we need to have the file FTP to the server in our company.

So we need a webpage (stored in our Verizon web account) that allows a file to be uploaded to an FTP server in our office.

One approach that I can think of is to use an ASP page that allows the user to upload the file to the verizon account (I know how this is done). Then the ASP page runs another application that transfers the file from the Verizon account to the server in our company (I don't know how to do this yet).

Would you please provide me with some ideas on other approaches we can use? Thanks very much in advance.

kothreat@yahoo.com

lord loh
May 23rd, 2003, 04:00 AM
Why should the upload script be on your online account ?

It will be an un-necessary hassel to upload it as

user -> webHost -> office Server

have the asp on your office server...
have the "Upload Your images" (http://localhost/upload.asp) link on your office server and the upload will be

user -> office server

Any problems ?

kothreat
May 28th, 2003, 11:58 AM
Lordloh, thanks very much for your reply.

Yeah, I think you are right LordLoh.

My concern was that

1) my office server has a slow connection, which is alright...

2) I have to get the image filename/URL sent to my webhost application once the image has been uploaded. The main application is stored on the webhost service. If I put the upload.asp on my office server, how would the main applicatioin (in the webhost) find out the URL of the file being uploaded?

Any comments/recommendations would be greatly appreciated.

kothreat@yahoo.com

lord loh
May 30th, 2003, 12:39 AM
Have a index file on your office server which will contain the urls of all uploaded files...

when your main app needs tham let it look into this index file...

Alternatively,
All your uploaded files can be at a specific location... like http://304.34.54.54/uploaded/ and your main app can access it all from that root path....

Hope this helps..