Closed GoogleCodeExporter closed 8 years ago
This should be updated in the source. This worked for me as well.
Original comment by fud.thet...@gmail.com
on 9 Mar 2009 at 9:02
Original comment by BinaryMoon
on 14 Mar 2009 at 9:28
@grougrou & @fud.theturtle:
I don't think 'file -bi "$file"' works... $file is still in single quotes. I
think
this way you just get rid of the error message and it's still not working as
intended.
Original comment by hans.sp...@gmail.com
on 7 Aug 2009 at 8:58
I still have this problem.. any fixes?
Will try your solution, images work me for but that error message is annoying
and
filled my error_log will 1GB of junk
Original comment by realtime...@googlemail.com
on 28 Nov 2009 at 4:04
The working solution:
$mime_type = trim( @shell_exec( 'file -bi ' . escapeshellcmd( $file ) ) );
Original comment by glenn.an...@gmail.com
on 18 Jan 2011 at 8:49
Original issue reported on code.google.com by
grougrou
on 26 Jan 2009 at 12:52