The #fsize directive instructs the Web server to insert the size of the specified file into an HTML page. You must surround a directive with HTML comment delimiters.
This directive can be used only in HTML pages; it cannot be used in ASP pages.
<!-- #fsize PathType = FileName -->
Path Type | Meaning |
File | The file name is a relative path from the directory containing the document with the #fsize directive. |
Virtual | The file name is a full path from a virtual directory in your Web site. |
The file containing the #fsize directives must use a file name extension that is mapped to the SSI interpreter; otherwise, the Web server will not process the directives. By default, the extensions .stm, .shtm, and .shtml are mapped to the interpreter (Ssinc.dll).
By default, the size is expressed in kilobytes. You can change the unit of measurement by using the #config directive with the sizefmt option.
The returned file size string contains commas (,) as the thousands placeholder (for example, 1,389,587).
<!-- #fsize file = "myfile.htm" -->