Uploads a file to an FTP site. Works the same as FtpSendFileEx() except it uses a single WinInet PutFile() operation and doesn't provide individual file progress information.
Works better for small files where individual file progress information is not required. This function maybe more reliable than FtpSendFileEx().
numeric - 0 success anything else: WinInet Error Code
Local file to send to the server. Use a fully qualified path and file name.
Filename on the server to copy the file to. Path is server relative to the server's current FTP folder.
This method does not report progress to OnFtpBufferUpdate()
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.
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
Comment or report problem with topic