tags:

views:

56

answers:

3

I'm creating an image uploader which will give the user an option to upload file to a different server than which the script is hosted on.

Is making an FTP connection from the script server to the target uploading server the only way to do this ?

Correct me if im wrong, but would the path of the file look like this ?

User computer (file) ---> script server ----> target server

Is there another way to do this ?

A: 

Is there another way to do this ?

Apart from uploading it twice from the user's computer, I don't think there is.

There's FXP but it is usually disabled on shared hosting in my experience.

Pekka
A: 

In a specialized environment, you could do something with IP multicast, but it's unlikely to work in general.

Anonymouse
A: 

cURL supports FTP. You should be able to connect to your FTP servers and upload the file.

toscho