Index: branches/5.2.x/core/kernel/utility/formatters/upload_formatter.php =================================================================== diff -u -N -r15455 -r15462 --- branches/5.2.x/core/kernel/utility/formatters/upload_formatter.php (.../upload_formatter.php) (revision 15455) +++ branches/5.2.x/core/kernel/utility/formatters/upload_formatter.php (.../upload_formatter.php) (revision 15462) @@ -1,6 +1,6 @@ 1 && $value['size'] ) { - if ( is_array($value) && $value['error'] === UPLOAD_ERR_OK ) { + if ( is_array($value) && (int)$value['error'] === UPLOAD_ERR_OK ) { $max_filesize = isset($options['max_size']) ? $options['max_size'] : MAX_UPLOAD_SIZE; // we can get mime type based on file content and no use one, provided by the client