(sorry for the Outlook-y reply)
"NTSB says pilot error to blame"
Apparently, if you edit the LocalSettings.php file in the directory you made when you untarred your backup tarball instead of the real one in $wgScriptPath it doesn't take.
My bad. Sorry for the bandwidth.
[slinks off in shame]
-- Peter Laws / N5UWY National Weather Center / Network Operations Center / Remote University of Oklahoma Information Technology plaws@ou.edu
________________________________________ From: mediawiki-l-bounces@lists.wikimedia.org [mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Jim Hu [jimhu@tamu.edu] Sent: Monday, June 23, 2008 19:38 To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Upload PDFs, Visios?
I figured you had, but I've forgotten to turn those back on when updating before...
So... more detail about what you see when it "doesn't work"?
Jim
On Jun 23, 2008, at 6:15 PM, Laws, Peter C. wrote:
Let's start with the obvious...can you upload other file types? In localsettings.
$wgEnableUploads = true;
set permissions so apache can write to the images directory.
Yes. Been doing that for some time and now have users that want to put other files up.
-- Peter Laws / N5UWY National Weather Center / Network Operations Center / Remote University of Oklahoma Information Technology plaws@ou.edu
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Much better user error than some bizarre new bug for us all to go figure out 8-)
On Mon, Jun 23, 2008 at 6:27 PM, Laws, Peter C. plaws@ou.edu wrote:
(sorry for the Outlook-y reply)
"NTSB says pilot error to blame"
Apparently, if you edit the LocalSettings.php file in the directory you made when you untarred your backup tarball instead of the real one in $wgScriptPath it doesn't take.
My bad. Sorry for the bandwidth.
[slinks off in shame]
-- Peter Laws / N5UWY National Weather Center / Network Operations Center / Remote University of Oklahoma Information Technology plaws@ou.edu
From: mediawiki-l-bounces@lists.wikimedia.org [mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Jim Hu [jimhu@tamu.edu] Sent: Monday, June 23, 2008 19:38 To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Upload PDFs, Visios?
I figured you had, but I've forgotten to turn those back on when updating before...
So... more detail about what you see when it "doesn't work"?
Jim
On Jun 23, 2008, at 6:15 PM, Laws, Peter C. wrote:
Let's start with the obvious...can you upload other file types? In localsettings.
$wgEnableUploads = true;
set permissions so apache can write to the images directory.
Yes. Been doing that for some time and now have users that want to put other files up.
-- Peter Laws / N5UWY National Weather Center / Network Operations Center / Remote University of Oklahoma Information Technology plaws@ou.edu
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
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
Laws, Peter C. wrote:
(sorry for the Outlook-y reply)
"NTSB says pilot error to blame"
Apparently, if you edit the LocalSettings.php file in the directory you made when you untarred your backup tarball instead of the real one in $wgScriptPath it doesn't take.
OK, so I've got it so that it doesn't reject vsd/xls/pdf outright, but now I've got the infamous "The file is corrupt or has an incorrect extension" message.
I have "$wgMimeDetectorCommand= "file -bi";" but I note that when I run "file -bi" against an XLS file, I get
application/msword
Is that the right MIME type for an MS-Excel spreadsheet?
PDFs work just fine and even get the icon. I'm trying to get a Visio file to test as well.
Peter Laws wrote:
OK, so I've got it so that it doesn't reject vsd/xls/pdf outright, but now I've got the infamous "The file is corrupt or has an incorrect extension" message.
I have "$wgMimeDetectorCommand= "file -bi";" but I note that when I run "file -bi" against an XLS file, I get
application/msword
Is that the right MIME type for an MS-Excel spreadsheet?
So it seems this is, surprise, a problem with magic in MS-Office-related files (XLS, VSD, PPT, DOC), namely that they all are IDed as application/msword.
Someone sent me a patch for MimeMagic.php that has a bunch of conditionals in it that will apparently work around MS' problem. Cool!
Except that patch barfs on it. I'm no patch wizard or PHP wizard, but it appears to me that MimeMagic.php's code has changed enough that patch couldn't insert the changes.
Anyone have this happen and have a workaround for the patch? Or an updated patch? Or hints?
Interestingly, we just ran into a problem with Exchange rejecting attachments as spam because, ta da, Thunderbird assigns an "incorrect" mime-type to MS files!
Peter
mediawiki-l@lists.wikimedia.org