[dokuwiki] Re: Can't upload files anymore
- From: "Jerry Schwartz" <jschwartz@xxxxxxxxxxxxxxxx>
- To: <dokuwiki@xxxxxxxxxxxxx>
- Date: Thu, 10 Jul 2008 12:59:37 -0400
>-----Original Message-----
>From: dokuwiki-bounce@xxxxxxxxxxxxx [mailto:dokuwiki-
>bounce@xxxxxxxxxxxxx] On Behalf Of Anika Henke
>Sent: Thursday, July 10, 2008 10:11 AM
>To: dokuwiki@xxxxxxxxxxxxx
>Subject: [dokuwiki] Re: Can't upload files anymore
>
>Jerry Schwartz wrote:
>> Anyone else running PHP 5.2.6 with DokuWiki 2008-05-05? I suspect that
>it
>> was the upgrade to PHP 5.2.6 that killed our ability to upload media
>files.
>
>There is a (new) bug report that seems to be directly related:
>http://bugs.splitbrain.org/index.php?do=details&task_id=1441
>
[JS] The symptoms don't seem to match, although the problems might be
related. In my case, the upload doesn't even start.
My JavaScript isn't the best, and my knowledge of Dokuwiki's innards is
non-existent, but I found this in the source of the media manager screen:
function G_onsubmithandler() {
var filename = document.getElementById('upload__name').value;
if(!filename){
alert("Please enter a file for uploading");
return false;
}
elems = filename.split(/\./);
ext = elems.pop();
if(!ext.match(/(jpeg|jpg|png|gif|bmp)/)) {
alert('filetype not supported: ' + ext);
return false;
}
setupFCK(document.getElementById('media__manager'));
return true;
}
Won't that prevent any file types but jpeg, jpg, png, gif, and bmp from
being accepted? I don't see where this code allows for reading mime.conf (no
AJAX), and bmp isn't even IN mime.conf. Either this bit of JavaScript is
hard-coded, in which case this problem would hit everyone, or it is produced
dynamically from some source other than mime.conf.
>Anika
>--
>DokuWiki mailing list - more info at
>http://wiki.splitbrain.org/wiki:mailinglist
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- Follow-Ups:
- [dokuwiki] Re: Can't upload files anymore
- From: Andreas Gohr
- [dokuwiki] Re: Can't upload files anymore
- From: Myron Turner
- References:
- [dokuwiki] Can't upload files anymore
- From: Jerry Schwartz
- [dokuwiki] Re: Can't upload files anymore
- From: Jerry Schwartz
- [dokuwiki] Re: Can't upload files anymore
- From: Anika Henke
Other related posts:
- » [dokuwiki] Can't upload files anymore
- » [dokuwiki] Re: Can't upload files anymore
- » [dokuwiki] Re: Can't upload files anymore
- » [dokuwiki] Re: Can't upload files anymore
- » [dokuwiki] Re: Can't upload files anymore
- » [dokuwiki] Re: Can't upload files anymore
- » [dokuwiki] Re: Can't upload files anymore
- » [dokuwiki] Re: Can't upload files anymore
- » [dokuwiki] Re: Can't upload files anymore
- » [dokuwiki] Re: Can't upload files anymore
- » [dokuwiki] Re: Can't upload files anymore
- » [dokuwiki] Re: Can't upload files anymore
- » [dokuwiki] Re: Can't upload files anymore
- [dokuwiki] Re: Can't upload files anymore
- From: Andreas Gohr
- [dokuwiki] Re: Can't upload files anymore
- From: Myron Turner
- [dokuwiki] Can't upload files anymore
- From: Jerry Schwartz
- [dokuwiki] Re: Can't upload files anymore
- From: Jerry Schwartz
- [dokuwiki] Re: Can't upload files anymore
- From: Anika Henke