#fsize
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.
Syntax
<!-- #fsize
PathType = FileName -->
Parameters
- PathType
- Specifies
the type of the path to FileName. The path type can be one of the
following:
|
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. |
- FileName
- Specifies
the name of the file for which you want the file size. FileName
must contain the file name extension, and you must enclose the file name
in quotation marks (").
Remarks
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).
Examples
<!-- #fsize file = "myfile.htm" -->
|