Gentee Programming Language > Documentation > Libraries Download documentation

ftp.putfile

This method is used to upload the required file from the remote host to the FTP server.
 
uint ftp.putfile(
      str   srcname,
      str   destname,
      uint   flag
)

Parameters

srcnameThe name of the required source file.
destnameThe name of a file stored on the FTP server.
flagFlags. If the flag of the binary or text mode is not specified, the method makes effort to determine a file type.
$FTP_BINARYA binary file is uploaded
$FTP_TEXTA text file is uploaded.
$FTP_CONTINUEto proceed with file uploading.

Return value

Nonzero if initialization was successful; otherwise 0.

See also

    Internet


 Copyright © 2004-2006 Gentee Inc. All rights reserved.