Upload Variables
Éditer page | Attach | Comments: Hide Show | Print

Français

English

Demos

PmWiki

(edit)


<< EditVariables | PmWiki.Variables | I18nVariables >>

$EnableUpload
The upload.php script is automatically included from stdconfig.php if the $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
The directory where uploads are to be stored. Defaults to uploads/ in the pmwiki directory, but can be set to any location on the server. This directory must be writable by the webserver process if uploading is to occur.
$UploadUrlFmt
The url of the directory given by $UploadDir.
$UploadPrefixFmt
Sets the prefix for uploaded files to allow attachments to be organized other than by groups. Defaults to '/$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
Page mise à jour le 26 mars 2005 à 22h41 par Pm
Éditer page | Changements récents (All) | Attach | Historique | Wiki Help | Print