[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mediawiki-l
Subject:    Re: [Mediawiki-l] XLS file upload problem
From:       "Dave Sigafoos" <davesigafoos () sanmar ! com>
Date:       2008-12-23 18:45:43
Message-ID: 03A3A9F0B5B00645894D9D5C78E33AA0F2CA02 () WAPEXVRT01 ! corp ! sanmar ! com
[Download RAW message or body]

Jim,

Thanks for that ... it worked great.

Now if I could get the users to understand.

Have a great holiday season

DSig
David Tod Sigafoos | SANMAR Corporation
PICK Guy
206-770-5585
davesigafoos@sanmar.com 

 


-----Original Message-----
From: mediawiki-l-bounces@lists.wikimedia.org
[mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Sullivan,
James (NIH/CIT) [C]
Sent: Tuesday, December 23, 2008 6:06
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] XLS file upload problem


I run into this all the time with xls, and ppt files as well.  Its due
to the mime encoding in the files, which Mediawiki compares with in its
list of mime types in the file includes/mime.types.  I'm not sure if
this is a problem on Microsoft's end or with Mediawiki but the fix is
pretty simple.  To fix the problem modify the includes/mime.types file
by adding "xls" to the line:

application/msword

Also, I set the following in LocalSettings.php, which is recommended by
Mediawiki for proper mime type detection:

$wgMimeDetectorCommand = "file -bi";

but I still need to modify the mime.types file.  Also, remember you'll
need to modify mime.types whenever you update Mediawiki in the future.

Hope this helps...

-Jim
________________________________________
From: mediawiki-l-bounces@lists.wikimedia.org
[mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Dave Sigafoos
[davesigafoos@sanmar.com]
Sent: Monday, December 22, 2008 5:39 PM
To: MediaWiki announcements and site admin list
Subject: [Mediawiki-l] (no subject)

*     MediaWiki <http://www.mediawiki.org/> : 1.10.0

*     PHP <http://www.php.net/> : 5.2.0-8+etch11 (apache2handler)

*     MySQL <http://www.mysql.com/> : 5.0.32-Debian_7etch6-log



I have modified localsettings to allow XLS files but for some reason I
continually get



'The file is corrupt or has an incorrect extension. Please check the
file and upload again.'



My current setting looks like



$wgFileExtensions =3D array( 'xls','txt', 'sql', 'png', 'gif',
'jpg','jpeg', 'doc', 'mp3', 'bmp');



They all appear to work correctly except for xls.



Not that I like the idea of having XLS in the database .. but users seem
to think it is something they need.  It will last for a short period of
time then I can lock it down and delete them.



TIA

DSig
David Tod Sigafoos | SANMAR Corporation







_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic