THIS IS HISTORY! Check fabien.benetou.fr for news.
Seedea, scalable creativity
Xye, consultancy for serious creators
Information
(Updates)
<< Security Variables | PmWiki.Variables | PmWiki.Functions >>
$EnableUpload
$EnableUpload
variable is true in config.php. Note that one may still need to set an upload password before users can upload (see UploadsAdmin).
$UploadDir
$UploadUrlFmt
$UploadDir
.
$IMapLinkFmt
['Attach:']
$LinkUploadCreateFmt
<a class='createlinktext' href='\$LinkUpload'>\$LinkText</a>
<a class='createlink' href='\$LinkUpload'> Δ</a>");
$UploadPrefixFmt
'/$Group'
(uploads are organized per-group), but can be set to other values for sitewide or per-page attachments.
$UploadPrefixFmt
= '/$FullName'; # per-page attachments$UploadPrefixFmt
= ''; # sitewide attachments
$EnableDirectDownload
$EnableDirectDownload
=0; causes requests for attachments to be obtained via ?action=download
. This allows PmWiki to protect attachments using a page's read permissions, but also increases the load on the server.
$EnableUploadVersions
file.ext,timestamp
(instead of being overwritten). timestamp
is a Unix-style timestamp.
$UploadNameChars
"-\w. "
, which means alphanumerics, hyphens, underscores, dots, and spaces can be used in upload names, and everything else will be stripped.
$UploadNameChars
= "-\w. !=+"; # allow exclamations, equals, and plus
$UploadPrefixQuota
$UploadDirQuota
$UploadMaxSize
Units are in bytes. 100K: 100000; 1MB: 1000000; 1GB: 1000000000; 1TB: 1000000000000;
Question - What are "octets" in the $UploadMaxSize
text above? John Bittner?
This page may have a more recent version on pmwiki.org: PmWiki:UploadVariables, and a talk page: PmWiki:UploadVariables-Talk.