Manual:$wgUseSharedUploads/pt

From Linux Web Expert

Revision as of 13:12, 10 April 2024 by imported>Vinickw (Created page with "== Ver também ==")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> Shared uploads</translate>: $wgUseSharedUploads
Whether to look in a shared repository when a file is not found locally
<translate> Introduced in version:</translate>1.3.8
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(boolean)
<translate> Default value:</translate>false

Details

If you operate multiple wikis, you can define a shared upload path using $wgSharedUploadPath . If $wgUseSharedUploads is set, the wiki will look in the shared repository if no file of the given name is found in the local repository (for [[Image:..]], [[Media:..]] links).

Thumbnails will also be looked for and generated in this directory.

Uploads to the wiki will NOT be put there - they will be put into $wgUploadDirectory .

Thumbnails of shared images

For resizing images in mediawiki they need to have a row in image table of database containing dimensions and other information of image so you can't resize images that haven't been uploaded by MediaWiki software and for importing them to database without using MediaWiki interface, you'll need to use some maintenance scripts (maintenance/importimage.php).

Ver também

  • Manual:$wgForeignFileRepos - a more flexible way of configuring shared upload repositories (and the only way, if you want to set up more than one shared upload source)