Manual:$wgEnableUploads/pt
From Linux Web Expert
<translate> Files and file uploads</translate>: $wgEnableUploads | |
---|---|
Permita que as imagens e outros ficheiros sejam enviados através da wiki. |
|
<translate> Introduced in version:</translate> | 1.5.0 |
<translate> Removed in version:</translate> | <translate> still in use</translate> |
<translate> Allowed values:</translate> | (booliano) |
<translate> Default value:</translate> | false |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
Detalhes
Found in the LocalSettings.php file, when set to true
, users will be allowed to upload images and other enabled files.
Users will see an 'Upload file' link appearing in the toolbox on the bottom-left (usually), linking to the Special:Upload page.
This link appears for users with the 'upload' right (logged-in users by default).
Destination filename
field there in Special:Upload page is a case sensitive field and should be used to give descriptive filename instead of using the default one populated from source file name.
- If a file already exists in the system with name
Destination filename
, uploading this file without changingDestination filename
will create a archive file and store the older version in/images/archive
folder.
When enabling file uploads, you must also make the
images
directory writable by the web server, otherwise you will just see an error such as failed to open stream: Operation not permitted
or Could not create directory "mwstore://local-backend/local-public/0/00"
. Note that a web server writable directory is not insecure in itself, but can be thought of as the first half of a successful attack to your web server, as such you might like to explore alternatives using img_auth.php.IMPORTANTE: os envios precisam de ser configurados devidamente para serem seguros! Existem várias definições de configuração relacionadas. Recomenda-se que leia as instruções mais completas em Manual:Configurar envios de ficheiro
Consulte também
- Manual:$wgUploadDirectory - if one wants to change default upload folder, which is
/images
. - Manual:$wgUploadSizeWarning
- Manual:$wgMaxUploadSize - default is 100 MB, change it if needed.
- Manual:Configurar envios de ficheiro
- Manual:Configuration settings#Uploads - a list of all configuration variables related to file uploads
- Categoria:Variáveis de Envio - similar list as a category (ordered alphabetically)
- Manual:Interface/Uploaddisabledtext - message at Special:Upload if uploads disabled
- Diretiva php.ini de file_uploads. Isto deverá estar ativado para que os envios funcionem