Re: [twsocket] Using 'PUT' to upload a file

2008-03-13 Thread Dave Coventry
Okay, thanks very much for the help, guys. I think I had failed to initialise the HostFileName. I've just tried Arno's suggestion to run Ftptst to upload "logo.jpg", and, although the file "logo.jpg" is not present on the system, there is a new file called "index.html" which is the same size as "

Re: [twsocket] Using 'PUT' to upload a file

2008-03-13 Thread Francois Piette
ernet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be - Original Message - From: "Dave Coventry" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Thursday, March 13, 2008 12:50 PM Subject: Re: [twsocke

Re: [twsocket] Using 'PUT' to upload a file

2008-03-13 Thread Arno Garrels
Dave Coventry wrote: > Well, can anyone see what's wrong with the following code that might > be causing the problem?: Spaces in the file path don't matter. At first you should try to send your file by FtpTst demo, fill in a valid source filename and the other properties correctly. If that failed

Re: [twsocket] Using 'PUT' to upload a file

2008-03-13 Thread Dave Coventry
Well, can anyone see what's wrong with the following code that might be causing the problem?: DPath:='C:\Documents and Settings\dave\My Dociments\Files to upload'; FtpClient1.LocalFileName := DPath+'\'+StringGrid1.Cells[1,StringGrid1.Row]; showmessage(FTPClient1.LocalFileName);//<- Shows the cor

Re: [twsocket] Using 'PUT' to upload a file

2008-03-13 Thread Dave Coventry
On Thu, Mar 13, 2008 at 9:56 AM, Arno Garrels <[EMAIL PROTECTED]> wrote: > Wireshark can only 'see' data passing the NIC. I think > a file transfer was just not started yet. Hmm. Using Microsoft's command line ftp, Wireshark picks up "STOR logo.jpg". > Method Put is blocking, it returns when t

Re: [twsocket] Using 'PUT' to upload a file

2008-03-13 Thread Arno Garrels
Dave Coventry wrote: > I wonder why the Wireshark dump didn't show the file? Wireshark can only 'see' data passing the NIC. I think a file transfer was just not started yet. > I'm using 'Put' (or 'PutAsync', I'm not sure I understand the > difference) Method Put is blocking, it returns when th

Re: [twsocket] Using 'PUT' to upload a file

2008-03-13 Thread Dave Coventry
'Morning Arno. Sorry, that was a typo. Okay, so I'm on the right track. I wonder why the Wireshark dump didn't show the file? On Thu, Mar 13, 2008 at 9:21 AM, Arno Garrels <[EMAIL PROTECTED]> wrote: > Hello Dave, > > > > If I want to transfer the "C:\Documents and Settings\dave\My > > Docimen

Re: [twsocket] Using 'PUT' to upload a file

2008-03-13 Thread Arno Garrels
Hello Dave, > If I want to transfer the "C:\Documents and Settings\dave\My > Dociments\Files to upload\logo.jpg", I place that string in the > FTPClient1.FileName parameter and then call FTPClient1.PutAsync? That property is named LocalFileName. On uploads LocalFileName represents the local sour

Re: [twsocket] Using 'PUT' to upload a file

2008-03-12 Thread Dave Coventry
Damn! I should have looked at the Wireshark output before posting. It appears that TFTPClient sends 'STOR' but doesn't specify a Local file to upload. When I test using Windows ftp, the wireshark output shows 'STOR logo.jpg', but the output of my app only says 'STOR'. If I want to transfer the

[twsocket] Using 'PUT' to upload a file

2008-03-12 Thread Dave Coventry
My simple app can't upload a file. I'm using 'Put' (or 'PutAsync', I'm not sure I understand the difference), but get the error > PASV < 227 Entering Passive Mode (80,84,64,24,158,177) ! Upload Size 720 > STOR < 553 Could not create file. OnRequestDone. RqType = 18ErrCode = 553 *** ERROR 553