1
IMLost
Avatar Upload
  • 2005/4/9 2:44

  • IMLost

  • Just popping in

  • Posts: 42

  • Since: 2004/12/4


Not sure if this is really a bug or not. I have the latest security patch applied for avatar upload.

mimetypes.inc.php
uploader.php

When a user uploads an image and the file extension is all caps they get the following error.

Unknown filetype rejected
MIME type not allowed
image/pjpeg


If you rename the image then it uploads without a problem.

2
toddherrold
Re: Avatar Upload

don't know if it's a bug either, but it is frustrating. my users are having this problem also.

3
m0nty
Re: Avatar Upload
  • 2005/4/12 1:13

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


i just tried uploading an avatar on my XOOPS 2.0.9.3 site and had no problems uploading any image type

images tested:

test.jpg
test.JPG
test.jpeg
test.JPEG
test.gif
test.GIF


it makes no difference.. i can't replicate your problem

try reuploading the patch and make sure mimetypes.inc.php isn't corrupted..

4
Antoine
Re: Avatar Upload
  • 2005/6/20 21:02

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


Got the same problem when using uplaoder.php's XoopsMediaUploader in a custom module I wrote for a XOOPS 2.0.10 site.
Looks like I will have to dive in and try to debug the problem myself. It's part of the fun (and frustration) of using XOOPS imho.
....
Ok here is the solution:

The XoopsMediaUploader does a case sensitive(!) compare to extensions in mimetypes.inc.php.

On line 181 in your /class/uploader.php file change:

$ext substr$this->mediaName$ext );


to:

$ext strtolower(substr$this->mediaName$ext ));


Problem solved, at least for me. Hope it'll help others too.

5
rizfield
Re: Avatar Upload
  • 2005/11/16 6:29

  • rizfield

  • Just popping in

  • Posts: 1

  • Since: 2005/11/16


thanks...your solution solved the problems..thx again!

Login

Who's Online

203 user(s) are online (141 user(s) are browsing Support Forums)


Members: 0


Guests: 203


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits