|
php - ftp upload thru form
Hi,
i need to install a form that allows clients to upload binary files up to > 100 mb on our server. i tested several classes to make an ftp connection to our ftp server but unfortunately the upload works only on linux clients with opera or konqueror. netscape and mozilla dont transmit the entire path to the file to be uploaded so they fail anyway. IntenetExplorer gives the correct path but the upload does not arrive on the server.
on my box i have pure-ftpd running and in the logs an successful upload is displayed like that:
1 - linux pure-ftpd: (?@192.168.0.37) [INFO] New connection from 192.168.0.37
2 - linux pure-ftpd: (?@192.168.0.37) [DEBUG] Command [user] [ftp-user]
3 - linux pure-ftpd: (?@192.168.0.37) [DEBUG] Command [pass] [<*>]
4 - linux pure-ftpd: (?@192.168.0.37) [INFO] ftp-user is now logged in
5 - linux pure-ftpd: (ftp-user@192.168.0.37) [DEBUG] Command [cwd] [/srv/www/htdocs/stock/lfd/web41da4fc9789a7/]
6 - linux pure-ftpd: (ftp-user@192.168.0.37) [DEBUG] Command [pasv] []
7 - linux pure-ftpd: (ftp-user@192.168.0.37) [DEBUG] Command [type] [I]
8 - linux pure-ftpd: (ftp-user@192.168.0.37) [DEBUG] Command [size] [/srv/www/htdocs/stock/lfd/web41da4fc9789a7/15013.JPG]
9 - linux pure-ftpd: (ftp-user@192.168.0.37) [DEBUG] Command [stor] [/srv/www/htdocs/stock/lfd/web41da4fc9789a7/15013.JPG]
10 - linux pure-ftpd: (ftp-user@192.168.0.37) [NOTICE] //srv/www/htdocs/stock/lfd/web41da4fc9789a7/15013.JPG uploaded (887874 bytes, 1022.57KB/sec)
11 - linux pure-ftpd: (ftp-user@192.168.0.37) [DEBUG] Command [site] [CHMOD 777 15013.JPG]
12 - J linux pure-ftpd: (ftp-user@192.168.0.37) [DEBUG] Command [quit] []
if a visitor from Windows tries to upload line 7,8,9,10 are simply missing. no error message - no upload
I used a class i got from phpclasses to connect to the server and have now switched to Net_FTP from pear - but no luck yet.
Do u have an idea what i might be missing? would be great!
cheers, j.
|