function FileSize(const FileName: String): Integer
The FileSize function returns the size, in bytes, of the file input parameter. The return value is an Integer value.
The specified file name should contain an absolute path. Relative paths are permitted, but they rely on the current working directory. The current working directory is a per-process setting and is not reliable in a multi-threaded setting like the web server.