Posted on: 06/11/10 05:24am
By: Anonymous (uKrease)
Greetings community,
Recently my Geeklog install has started playing around, its latest trick is to spit out this error when I try to upload an image to a story :
"Mime type, , or extension of mouse.JPG not in list of allowed types."
It seems as if something is getting missed out, between the two commas, like maybe a blank variable or something ?
I checked in /system/classes/upload.class.php and changed this :
function setAllowedMimeTypes($mimeTypes = array();
to this :
function setAllowedMimeTypes($mimeTypes = array('image/gif' => '.gif','image/jpeg' => '.jpg,.jpeg','image/pjpeg' => 'jpg,.jpeg','image/x-png' => '.png','image/png' => '.png'
)
(I read this in a similar post here on the forums)
But still I get errors as stated above.
How can I set this to work ?
Thanks for your time and willingness to assist.
Geeklog Version : 1.4.1
Regards
Chris
Re: Image types issue
Posted on: 06/11/10 05:25am
By: uKrease
Oops...forgot to log in to post
Re: Image types issue
Posted on: 06/11/10 06:34am
By: ::Ben
Hello,
Did you try to remame mouse.JPG to mouse.jpg
::Ben
Re: Image types issue
Posted on: 06/11/10 06:45am
By: Anonymous (uKrease)
Hi cordiste, thanks for replying,
The error appears no matter what file type I try (gif, jpg, jpeg, png, bmp etc), or whether the extension is in upper or lower case
Re: Image types issue
Posted on: 06/11/10 07:03am
By: Dirk
The check of the extension is done case-insensitive, so the problem is the missing MIME type.
The MIME type is to be sent by your browser when you upload the image. For some reason, it doesn't seem to send one. Did you try another browser?
bye, Dirk
Re: Image types issue
Posted on: 06/11/10 07:27am
By: uKrease
Hi Dirk,
Thank you for replying...
I tried in IE and Firefox, same result.
Could it be permissions ?
I ran the /install/check.php file and all tests passed..
Does the file get moved to /tmp during the upload process ?
Thanks
Chris