Mobile app version of vmapp.org
Login or Join
Becky754

: Possibilites on uploading a file without login in mediawiki In mediawiki, using api i can upload a file. its getting fine . But it will upload only logged in. i need to customize without login

@Becky754

Posted in: #Mediawiki #Php

In mediawiki, using api i can upload a file. its getting fine . But it will upload only logged in. i need to customize without login anybody can upload a file . I know without login cannot able to access api fuctionalities. Is there any possibilities to do without login ?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Becky754

1 Comments

Sorted by latest first Latest Oldest Best

 

@BetL925

From the MediaWiki documentation:


By default anonymous uploads are not allowed. You must register and logon before the upload file option appears in the toolbox.


And then from configuring uploads:


Is there a way to allow users to upload files without logging in?

That'd be a great help for corporate environments where only a limited number of people can access the wiki (server) anyway...

Edit SpecialUpload.php file in the includes folder
Comment out the following two lines:


$wgOut->errorPage( 'uploadnologin', 'uploadnologintext' );
return;



Now users will not have to login to reach the upload form.
Simpler method, modify LocalSettings.php:


$wgEnableUploads = true;
$wgGroupPermissions['*']['upload'] = true;

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme