wwftp::FTPSendFileEx

Uploads a file to an FTP site with event progress information and the ability to cancel.

o.ftpsendfileex(lcSourceFile, lcTargetFile)

Return Value

numeric - 0 success anything else: WinInet Error Code

Parameters

cSourceFile
Local file to send to the server.

cTargetFile
Filename on the server to copy the file to.

Remarks

You must have rights to write to the FTP directory based on the FTP server permissions. Write permissions are not granted to FTP directories by default, so you have to make sure that you can upload files in the first place. You can check this out with your regular FTP client.

Example

o=create("wwFTP")

o.FTPConnect("ftp.west-wind.com")
o.FTPSendFileEx("c:\temp\pkzip.exe","/downloads/pkzip.exe")
o.FTPClose()

See also:

Class wwftp | wwFTP::OnFTPBufferUpdate | wwFTP::lCancelDownload


  Last Updated: 11/20/1999 | © West Wind Technologies, 2008