Jump to content

Manual:$wgEnableUploads/ko

From mediawiki.org
This page is a translated version of the page Manual:$wgEnableUploads and the translation is 4% complete.
Files and file uploads: $wgEnableUploads
Allow images and other files to be uploaded through the wiki.
이 변수가 소개된 버전:1.5.0
이 변수가 사라진 버전:계속해서 쓰이고 있음
허용값:(boolean)
기본값:false

Details

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 파일 올리기 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).

  • 파일의 새 이름: 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 파일의 새 이름:, uploading this file without changing 파일의 새 이름: 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.

IMPORTANT: Uploads need to be set up properly in order to be secure! There are several related configuration settings. It is recommended to read the more complete instructions at Manual:파일 업로드 설정하기

같이 보기

This must be enabled for uploads to work