8
xoops 2.2 uploader.php doesn't contain the imagesize check for invalid content, that's y it works for you..
it seems this is all dependant on server configuration, with open_basedir or some other server issue.. not a XOOPS problem!!!
it works perfectly on all the servers i have access to..
to resolve the issue if your server host is configured differently
open class/uploader.php
find & remove/comment out the lines below
if ( $ext && in_array( $ext, array( 'gif', 'jpg', 'jpeg', 'png', 'bmp', 'xbm' ) ) ) {
// Prevent sending of invalid images that would crash IE
if ( ! ( $info = getimagesize( $this->mediaTmpName ) ) ) {
$this->setErrors( 'Invalid file content' );
return false;
}
}