Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 10:04 am 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')
(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
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
11
10
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
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
11
8
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
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
12
8
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
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
11
12
Quote
All times are EST. The time is now 10:04 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