There are two bugs in modules/media2/www/img.php:
1) line 28 and 29: $conf['site']['uploadDirOverride'] should be changed to $conf['path']['uploadDirOverride']
2) line 65: strpos($fileName, $uploadDir) !== 0 should be changed to strpos($fileName, $uploadDir) === 0
There are two bugs in modules/media2/www/img.php: 1) line 28 and 29: $conf['site']['uploadDirOverride'] should be changed to $conf['path']['uploadDirOverride'] 2) line 65: strpos($fileName, $uploadDir) !== 0 should be changed to strpos($fileName, $uploadDir) === 0