url required default (empty string)The file URL to inspect, normally a field getter like _#FILE____ (a file/upload field). A leading-slash path is resolved against the current host. An empty url yields an empty result.
info optional default (empty string)Which piece of metadata to return. One of the allowed values below. If omitted the result is empty (there is no implicit default). type and name are derived from the URL string alone; crc, time, mime and ifwebimg need an uploaded file - an upload url is mapped to its path, a path in the upload or File Manager directory works too - and return empty for anything else, since November 2026 also for any other file on the server disk. size, bytesize and typesize read such an uploaded file too; any other url is downloaded the same way as by include - an address of the server's private network is refused, and only a successful (2xx) answer counts. link builds a download link through filelink.
[{fileinfo:/etc/passwd:time}]
[{fileinfo:_#FILE____:link}]
[{fileinfo::type}]
[{fileinfo:https://example.org/files/report.pdf:type}]
[{fileinfo:https://example.org/a/b/report.final.pdf:name}]
[{fileinfo:_#FILE____:size}]
[{fileinfo:_#FILE____:mime}]
[{fileinfo:https://example.org/files/photo.JPG?v=3:name}]
[{fileinfo:https://example.org/files/report.pdf}]
[{fileinfo:_#FILE____:ifwebimg}]
[{fileinfo:_#FILE____:typesize}]
[{fileinfo:https://example.org/files/README:type}]
{filelink:_#FILE____:_#TEXT____:Download#: }