Welcome to Geeklog, Anonymous Monday, December 05 2022 @ 08:33 pm EST

Geeklog Forums

Image types issue


uKrease

Anonymous
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

uKrease

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

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Hello,

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

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

uKrease

Anonymous
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

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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

uKrease

Forum User
Junior
Registered: 01/30/06
Posts: 24
Location:JHB ZA
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 EST. The time is now 08:33 pm.

  • 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