Diff: Help/FileInfoPlugin

Differences between version 4 and predecessor to the previous major change of Help/FileInfoPlugin.

Other diffs: Previous Revision, Previous Author

Newer page: version 4 Last edited on February 23, 2012 2:52 pm by PhilHollenback Revert
Older page: version 3 Last edited on February 23, 2012 2:52 pm by PhilHollenback Revert

Content of versions 3 and 4 is identical.

Version 4 was created because:


version 4

The FileInfo plugin displays the version, date, size, perms of an uploaded file. Only files relative and below to the uploads path can be handled.

For exe files the version argument might work to display the VERSIONINFO ressource string. (highly experimental).

Typical Usage

<<FileInfo file=uploads/setup.exe display=version,date>>
<<FileInfo file=uploads/setup.exe display=name,version,date
                                  format="%s (version: %s, date: %s)">>

Arguments

Argument

Description

Default value

file

Relative path from PHPWIKI_DIR.

None (required argument)

display

Comma-seperated string of version, size, phonysize, date, mtime, owner, name, path, dirname, link, mime-typ, magic.

None (required argument)

format

printf format string with %s only, all display modes from above vars return strings

(optional)

quiet

print no error if file not found

false

Examples

This wiki was installed at 10/14/15 10:36:26.



Our Founder
ToolboxClick to hide/show