ftp.putfile
Stores a file on the FTP server. This method is used to upload the required file from the remote host to the FTP server.
method uint ftp.putfile (
str srcname,
str destname,
uint flag
)
str srcname,
str destname,
uint flag
)
Parameters
srcname | The name of the required source file. | ||||||
destname | The name of a file stored on the FTP server. | ||||||
flag | Flags. If the flag of the binary or text mode is not specified, the method makes effort to determine a file type.
|
Return value
If the function succeeds, the return value is 1. If the function fails, the return value is 0.
Related links | Source |