Jump to content

Topic on Project:Support desk/Flow

89.157.115.94 (talkcontribs)

Hello! I activate by default in the installation the file repository from Commons (didn't want contributors to be able to upload files directly on the server). However I would like to put myself files on the server (/images/). I added the FileRepo code in LocalSettings but I can't seem to put the files in the articles. Should I write something different than File:Myfile.jpg?

$wgForeignFileRepos[] = [
	'class' => 'FileRepo',
	'name' => 'sharedFsRepo',
	'directory' => '/images/',
	'hashLevels' => 0,
	'url' => 'http://wiki.lokal-life.org/images/',
];

Thanks! ~~~~

MarkAHershberger (talkcontribs)

If you want to limit who is allowed to upload, you should create a specific group (e.g. Uploaders) and restrict upload rights to people in that group.

94rain (talkcontribs)

As mentioned in the manual, this is just a demonstration feature and it is slow. Try clearing the cache?

Ciencia Al Poder (talkcontribs)

What MarkAHershberger said.

MediaWiki needs to know that those files exist, which means they should be registered in database (what normal upload does) or they should be queried from an api (what InstantCommons does). Looking files directly from filesystem is not supported.

94rain (talkcontribs)