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 Answer 1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.