Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I run my own mediawiki, with file uploads disabled, but I want to put an image in there. How do I do it? I've tried:

[[File:image_filename.png]]

But wherever I put image_filename.png, it doesn't seem to be right. Which folder should the image go in? I can put it there via FTP, I just need to know where the bloody thing goes.

Thanks.

share|improve this question

2 Answers 2

If you want it from FTP upload it in the main folder and for the image type

<img src="image_name.jpg>
share|improve this answer
    
Assuming you are allowed to add img src tags to pages. –  Olli Mar 2 '11 at 8:30
    
@Oli I am sure you can. –  Benny Mar 2 '11 at 8:31
    
Unfortunately <img> is not allowed - I could presumably add it to the tag whitelist, but I don't want users linking in any images they like. :( –  Colen Mar 2 '11 at 17:37
    
@Colen There is a whitelist that you can populate to limit websites that you can pull images from. –  Hydra Jan 1 '13 at 14:36

Add the following lines to your LocalSettings.php file:

$wgGroupPermissions['user']['upload'] = false;

$wgGroupPermissions['uploadaccess']['upload'] = true;

Then REMOVE the following line from LocalSettings.php:

$wgEnableUploads = false;

Then add your admin account to the uploadaccess group. I have done this to my own MediaWiki page.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.