0

is it possible to upload a file to server2 using server1?

the visitor go to: mywebsite.com (server1)
then he upload a file to server1 and the server1 automatically upload that file to server2 ??

or simply is it possible to the user to upload a file to server2 using server1 as a proxy, because server2 is only accessable from server1

would ftp be helpful or is there another better solution?

1 Answers1

0

As it seems you can use ftp through your upload script. I dont suggest making server 1 a proxy, that would just add more complication.

Ref: FTP Uploader using php


Another method would be sending file through curl to the script on server 2 more like api.

Ref: CURL PHP send image

Community
  • 1
  • 1
Naveed Ahmed
  • 166
  • 7