Diff: Help/FileInfoPlugin

Note: You are viewing an old revision of this page. View the current version.

Differences between version 2 and previous revision of Help/FileInfoPlugin.

Other diffs: Previous Major Revision, Previous Author

Newer page: version 2 Last edited on 22 May 2014 3:01 by harold Revert
Older page: version 1 Last edited on 17 January 2022 18:35 by harold Revert
@@ -1,13 +1,16 @@
-The **~FileInfo** [[Help:WikiPlugin|plugin]] displays the date, size, path, etc.  
-of an uploaded file. Only files relative and below to the uploads path can be handled. 
+The **~FileInfo** [[Help:WikiPlugin|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=Upload:image .png display=size ,date >>  
-<<FileInfo file=Upload:image .png display=name,size ,date  
- format="%s (size : %s, date: %s)" >> 
+<<FileInfo file=uploads/setup .exe display=version ,date>>  
+<<FileInfo file=uploads/setup .exe display=name,version ,date  
+ format="%s (version : %s, date: %s)">> 
 }}} 
  
 == Arguments == 
  
@@ -18,31 +21,27 @@
 ! Default value 
 |- 
 | **file** 
 | Relative path from PHPWIKI_DIR. 
-| //none // (required argument) 
+| //None // (required argument) 
 |- 
 | **display** 
-| Comma-separated string of size, phonysize, date, mtime, owner, group , name, path, dirname, mime, link  
-| //none // (required argument) 
+| Comma-separated 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** 
-| Boolean. If true, print no error if file is not found.  
+| print no error if file not found 
 | false 
 |} 
  
-== Example ==  
-  
-{{{  
-This wiki was installed at <<FileInfo file=config/config.ini display=date>>.  
-}}}  
+== Examples == 
  
 This wiki was installed at <<FileInfo file=config/config.ini display=date>>. 
  
 <noinclude> 
 ---- 
 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]] 
 </noinclude> 

version 2

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-separated 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 2022-12-27 03:25:56.