If FInfo is not enabled or corrupted this class will not work

See all posts Reply

If FInfo is not enabled or corrupted this class will not work new!
by Tabish, 10 years, 8 months ago
Hi, Just to let the users know about a bug. On my server FInfo was not enabled and the Class was not throwing any error and was showing a blank page after file upload. You please mention it in your faq because i didn't get any help in your forum or faq.

The FInfo module is NOT enabled by default in PHP version 5.2.17.

It comes as by default in PHP 5.3 and higher.

Regards
TabishReply
Re: If FInfo is not enabled or corrupted this class will not work new!
by colin, 10 years, 8 months ago
Which version of the class are you using? On which system? Can you copy here the logs produced by the web server when your script crashes?

The class should handle missing fileinfo. There must be something set up differently on your system.Reply
Re: If FInfo is not enabled or corrupted this class will not work new!
by Tabish, 10 years, 8 months ago
My server is: CENTOS 5.8 i686 virtuozzo
upload class version is: 0.31

Sorry.. log is deleted somehow..

The class was breaking just after this:
$handle = new upload($_FILES['image_field']);

and throwing blank page without any error.

When i commented from line number:
2804 (/*elseif (@class_exists('finfo')) {)
Till
2818 (}*/)

it started working..

And when FInfo was enabled in my PHP, everything worked perfect.

Regards
TabishReply