• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Image upload extension problem

Started by vlmal,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vlmalTopic starter

I've found a bug -- not sure if it has already been reported or not.

I tried to upload an image with the extension .JPG but it failed. After the pseudoupload the page just refreshed.

I tried adding .JPG to the allowed extension types but it still wouldn't work.

I then converted the image to .png and it worked.

Maybe the upload is case sensitive?
  •  

Marius P.

Yes it seems so.


Line 12 in com/com_image.php

if(in_array($ext,$allowedExtArray )) {





change it to


if(in_array(strtolower($ext),$allowedExtArray )) {
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Similar topics (7)