The first arg is the name of filename on your local drive. This can include a full path.
The second arg is what filename you want to use when the file is stored on the FTP server. Rather than specifying a full pathname, you should set the FTP's current directory to where the file is located, and then pass only the filename part to InetFile.
The third arg controls the transfer. You can specify any of the same options as with downloading a file (with the exception that the EXISTING is not utilized). But, you must also specify the UPLOAD option.
/* Upload the file MYFILE.EXE from the C drive and save * it as MYFILE.EXE in the FTP server's current directory. */ err = InetPutFile("C:\MYFILE.EXE", "MYFILE.EXE", "UPLOAD")If you omit the second arg, then InetFile uses the same name as the file on your hard drive, and uploads to the current directory on the server.
/* Upload the file README.TXT to the server's current directory * as a text file. */ err = InetFile("README.TXT", , "TEXT | UPLOAD") IF err \== "" THEN SAY errNote: In order to upload files, most FTP servers require you to log in with a user name and authorized password. The user name of "anonymous" and a password of your email address is typically not good enough. So when you call InetConnect, you'll have to supply suitable username and password arguments.