Page 1 of 1

ftp verus http upload

Posted: Wed Jun 29, 2005 3:26 am
by bhm8hwcm
I am looking to write a script to allow large file uploads - up to 100mb.

I am presently using a cgi script but would like to implement something using php ftp functions. My problem is I want the user to be able to browse their hard drive to select the file (basic form). My understanding is that if use "post" then the file will be uploaded via http and ftp transfer will only happen in the final stages on transferring from a temp directory to the final destination. Is this correct?

How do I pass the file selected through the form to the ftp script so the transfer from the client to my server is by FTP.

Any suggestions or bits of sample code would help.

Thanks