Help Help Help (File Transfer)

Runtime_error

Active member
Joined
Aug 5, 2003
Messages
38
Help

I have to transfer a file from one server to another. This has to be automated so basically the user selects the file to transfers, clicks a button and it sends it off to another server.

I can do the file upload, but that requires the file being on the users system. The scenario here is that the user is viewing the file on a remote server and then clicks the button to send that file to another server.

Can HTTP file transfer achieve this? If so , few pointers would be appreciated.

In ASP.net (C#) what is the best solution/ method to transfering files from one server to another.

Code samples would be good , but suggestions are appreciated a lot. Thanks in advance
 
Thank you but i am not trying to upload a file. Basically, the other server expects a file to be posted to it using the
<input type="file" id="filename" runat="server" /> control. but the problem is that the file is stored on one server and the user browses to it and clicks a buton, this file which is on this remote server then should be posted to another server.

If the file was on the users computer and then fileupload could be done directly to the second server but since the file is on the first server and needs to be transfered to the second server, file upload doesnt sound like a solution, unless i can assign the path of the file on the server to <input type="file"> control and do post the file to the other remote server.

I tried the above but i cant set the path of the input control dynamically. :(
 
Back
Top