LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Thread Tools
Old 01-04-2005, 07:37 AM   #1
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,042
Thanked: 14
php - ftp upload thru form


[Log in to get rid of this advertisement]
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.
j-ray is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Web form to upload to FTP server phatboyz Linux - Networking 2 05-18-2005 11:26 AM
PHP form help Zeppelin_Fan Programming 5 03-24-2005 05:47 PM
php/form kev82 Programming 0 02-25-2004 07:21 PM
ftp upload hotrodowner Linux - Networking 20 10-11-2002 05:23 PM
ftp upload in php raven Programming 2 07-07-2002 06:33 PM


All times are GMT -5. The time now is 09:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration