Do you know the appropriate flag value for setting active vs. passive mode? 
Sometimes one works better than the other.
You didn't say so I'll ask; how big is the file you are trying to FTP? Can you 
test with a nice small file and see what happens?

Westwind Client Tools
<http://www.west-wind.com/WestwindClientTools.aspx>
Every TCPIP related thing you ever wanted to do in VFP. 

--

rk
-----Original Message-----
From: ProfoxTech [mailto:[email protected]] On Behalf Of Kevin Cully
Sent: Tuesday, October 14, 2014 3:06 PM
To: [email protected]
Subject: FTP_Send_File

I'm trying to FTP some files from a VFP application using Dave Crozier's 
ftpClass.prg from the dowloads page. ( http://leafe.com/dls/vfp )  This is on a 
Windows 7 VM.

I may have skipped past the Microsoft Firewall settings too quickly thinking it 
was no big deal.  When I call the FTP_Send_File() method, which calls this 
function, VFP just hangs up and I have to force quit:

DECLARE  INTEGER  FtpPutFileIN  wininet;
     INTEGER  hConnect,;
     STRING   lpszLocalFile,;
     STRING   lpszNewRemoteFile,;
     INTEGER  dwFlags,;
     INTEGER  dwContext

I'm successfully connecting to the server according to FTP_Connect(). 
I'm able to FTP upload the file via FileZilla.

Any tips or alternatives?

-Kevin


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/DF1EEF11E586A64FB54A97F22A8BD04423CC3CD30B@ACKBWDDQH1.artfact.local
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to