1
konaafob
MIME type not allowed: image/pjpeg
  • 2006/1/16 3:15

  • konaafob

  • Just popping in

  • Posts: 57

  • Since: 2005/1/10


I upgraded newbb 1.0 to newb 2.x.
when I tried to upload a file I am getting following error. I search the forums and I didn't find the relevant post.

Thanks for your submission!

Errors Returned While Uploading
MIME type not allowed: image/pjpeg

If the page does not automatically reload, please click here

2
konaafob
Re: MIME type not allowed: image/pjpeg
  • 2006/1/16 3:49

  • konaafob

  • Just popping in

  • Posts: 57

  • Since: 2005/1/10


after searching on allowedMimeTypes I found following information

replacing below code

if (count($this->allowedMimeTypes) > 0 && !in_array($this->mediaType, $this->allowedMimeTypes)) {

with

if (count($this->allowedMimeTypes) == 0 && !in_array($this->mediaType, $this->allowedMimeTypes)) {

worked

3
m0nty
Re: MIME type not allowed: image/pjpeg
  • 2006/1/16 3:55

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


that's not recommended though as i think that will bypass all mimetypes..

https://xoops.org/modules/newbb/viewtopic.php?topic_id=44845

follow my instructions in thhe thread above, hopefully that will be the problem..

4
konaafob
Re: MIME type not allowed: image/pjpeg
  • 2006/1/17 22:49

  • konaafob

  • Just popping in

  • Posts: 57

  • Since: 2005/1/10


Hi,
I followed your previous post instructions and it didn't work. So I was forced to use the above logic.

the file I am trying to edit is under newbb.

Thanks,

Login

Who's Online

126 user(s) are online (67 user(s) are browsing Support Forums)


Members: 0


Guests: 126


more...

Donat-O-Meter

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

Latest GitHub Commits