Page 1 of 1
Upload to host
Posted: Tue Feb 05, 2008 11:04 pm
by xor83
I want to upload file to my dreamhost server from other URL location is that possible. There are many upload sample which upload files from clients local machine but i want to upload from different location can i do that? any help?
Re: Upload to host
Posted: Tue Feb 05, 2008 11:26 pm
by Kieran Huggins
You want to upload the file to your dreamhost server when a form is submitted to another server? You could use php's FTP functions to send it along.
Check out
http://ca.php.net/ftp for details
Re: Upload to host
Posted: Tue Feb 05, 2008 11:41 pm
by xor83
Kieran Huggins wrote:You want to upload the file to your dreamhost server when a form is submitted to another server? You could use php's FTP functions to send it along.
Check out
http://ca.php.net/ftp for details
Thanks for your help

yes i want that one form is showed to the user the user put URL in that form and it should upload that file to my dreamhost server.. becuz i don't have that much bandwidth to upload file i want to use dreamhost available B/W so.... is there any issues regarding bandwidth? is that allowed?
Re: Upload to host
Posted: Tue Feb 05, 2008 11:46 pm
by Kieran Huggins
You can only submit a form to one server at a time. You may want to set up a form controller on DH to accept this form (including the file) and then submit a form FROM your dreamhost server TO your other server using cURL with everything except the file data.
http://ca3.php.net/curl
Re: Upload to host
Posted: Wed Feb 06, 2008 2:04 am
by xor83
Thanks for your great help... this is what i want
