Upload not functioning, no error messages

Fragment of a discussion from Project:Support desk
Jump to: navigation, search

I've experienced similar behavior when changing upload settings for file types. Make sure you don't have any blacklisted that shouldn't be. Additionally I would check these settings, Manual:$wgCheckFileExtensions Manual:$wgStrictFileExtensions Manual:$wgVerifyMimeType.

   Thorncrag  19:45, 16 December 2011

Note: Zip files were blacklisted in earlier versions of MW since there was concern they could be used to sneak java .jar's into your wiki (newer versions of MediaWiki check for this).

Bawolff07:07, 18 December 2011

Hello, in my hosted MediaWiki 1.18 there ist just the same. Any help?

$wgEnableUploads  = true;
$wgFileExtensions = array('png', 'gif', 'jpg', 'jpeg', 'mp3', 'doc', 'xls', 'apk', 'mpp', 'pdf', 'ppt', 'tiff', 'bmp', 'docx', 'xlsx', 'pptx', 'ps', 'msi', 'zip', 'rar');
$wgVerifyMimeType = false;
$wgMimeDetectorCommand = "file -bi";
$wgCheckFileExtensions = true; 
$wgFileBlacklist = array();
$wgGroupPermissions['*']['read'] = false;
$wgWhitelistRead = array ("Special:Userlogin", "MediaWiki:Common.css", "MediaWiki:Common.js", "MediaWiki:Monobook.css", "MediaWiki:Monobook.js", "Spezial:Benutzerkonto_beantragen", "-");
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;
62.227.46.17622:51, 19 December 2011
 
Edited by 3 users.
Last edit: 18:03, 21 December 2011

Ha, found the reason. I used a shared SSL (HTTPS) and then the upload does not work. Using Mediawiki 1.18 by a HTTP Page upload works. So i checked the $wgServer and it pointed to HTTP://XYZ.dom, i changed it to $wgServer = "https://XYZ.dom"; (with "s") and all worked fine.

62.227.46.17622:51, 19 December 2011
 
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox