Welcome to Geeklog, Anonymous Wednesday, July 09 2025 @ 03:09 am EDT

Geeklog Forums

Image types issue


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'Wink)

(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


 Quote

Status: offline
Forum User
Junior
Registered: 01/30/06
Posts: 24
Oops...forgot to log in to post Big Grin
 Quote

Status: offline
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Hello,

Did you try to remame mouse.JPG to mouse.jpg Idea

::Ben
 Quote

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 Frown
 Quote

Status: offline
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
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
 Quote

Status: offline
Forum User
Junior
Registered: 01/30/06
Posts: 24
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

 Quote

All times are EDT. The time is now 03:09 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content