Some file types are considered dangerous, and you need extra steps to allow
them.  And this is something you normally shouldn't do.  References:

   - http://www.mediawiki.org/wiki/Manual:$wgMimeTypeBlacklist
   - http://www.mediawiki.org/wiki/Manual:$wgFileBlacklist
   -
   
http://www.mediawiki.org/wiki/Manual:Configuring_file_uploads#Configuring_file_types

I set up a special directory for such files (I call it an "auxiliary"
site).  They're web-accessible there.  And I defined a template to build the
correct URL to point to that template.  E.g.,

{{aux|a.doc|The DOC file version}}

Yields the string "The DOC file version" that is a link to
http://mysite.org/wiki-aux/a.doc

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Haim (Howard) Roman
Computer Center, Jerusalem College of Technology
Phone: 052-8-592-599 (6022 from within Machon Lev)



On Thu, Mar 10, 2011 at 09:38, Raymond Wan <[email protected]> wrote:

> Hi Nina,
>
>
> On Thu, Mar 10, 2011 at 12:37, McHale, Nina <[email protected]>
> wrote:
> > I have been having trouble uploading Word and PowerPoint documents to our
> wiki. I added the file types .doc, .docx, .ppt, and .pptx to
> $wgFileExtensions in LocalSettings.php, and it appears as though others ARE
> able to upload these types of files, because, well, they're there. This came
> up again because one person wanted to upload a .docx file, and while he was
> able to upload .doc files, he did not have any luck with .docx. I have not
> altered the mime.info or mime.types files; I just looked over the
> documentation for that, but I'm not sure that's the right place to be
> looking.
> >
> > And I don't know if it makes a difference, but I'm using Safari/Firefox
> on a Mac, and most others are using PCs with Firefox/IE.
>
>
> I'm not entirely sure the cause of your problem, but I don't think the
> browser would matter -- someone else can correct me.
>
> So, when you go to "Upload file", .docx is listed as a possible
> option.  Just a sanity check to make sure $wgFileExtensions changes
> are taken...
>
> The other thing you might want to see is the size of the file that you
> are uploading.  There are size limits and maybe your .docx file just
> happens to be larger than the ones that are already up there.  Or
> maybe they were uploaded at a time before a particular configuration
> was changed; and maybe that change has now broken the upload process
> some how.
>
> What kind of error message do you get when you upload something?  When
> I was trying to configure uploads, putting the error message in Google
> helped me find the solution.  See for example the steps listed here:
>
> http://www.mediawiki.org/wiki/Manual:Configuring_file_uploads
>
> Hope this helps.
>
> Ray
>
> _______________________________________________
> MediaWiki-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to