PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Requesting information about a file found on an FTP server
Requesting information about a file found on an FTP server
WINDEVWEBDEV - Server codeReports and QueriesJavaUser code (UMC)Ajax This example is used to find out the modification date and the size of a file found on the server. In this example, the path of the file is stored in the sPath variable.
IF FTPDate(gnConnectionID, sPath) <> "" THEN
// Displays in the DETAILS_REMOTE control
DETAILS_REMOTE = sPath + CR + "Modification date: " + ...
DateToString(FTPDate(gnConnectionID, sPath)) + CR + ...
"Size of the file: " + FTPSize(gnConnectionID, sPath) + "bytes"
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment