Manual:$wgForeignUploadTargets

From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgForeignUploadTargets and the translation is 40% complete.
Other languages:
English • ‎français • ‎日本語
共有アップロード: $wgForeignUploadTargets
アップロード ダイアログ の外部アップロード ターゲットの構成。
導入されたバージョン:1.27.0 (Gerrit change 243993; git #824e53c6)
除去されたバージョン:使用中
許容される値:(配列)
既定値:[ 'local' ]

Array of foreign file repository names (set in $wgForeignFileRepos ) that are allowable upload targets for the アップロード ダイアログ . The "target" wikis corresponding to the repositories must share the list of users with the "source" and be configured to accept CORS requests from the source wiki with $wgCrossSiteAJAXdomains . The default value allows for local file uploads only.

In order for uploads to be completed successfully using the same user on the target and source wiki, the wikis must have some method of authentication compatible with mw.ForeignApi (i.e. Extension:CentralAuth ).

Prior to MediaWiki 1.28, the default value was [], which was treated the same as [ 'local' ]. Starting with MediaWiki 1.28, the default value is [ 'local' ], and [] means that no upload targets are available (effectively disabling the upload dialog).

関連項目