Files on contact form are restricted by mime type.
More details in file:
oc-includes\osclass\controller\contact.php
$mime_array = array(
'text/php',
'text/x-php',
'application/php',
'application/x-php',
'application/x-httpd-php',
'application/x-httpd-php-source',
'application/x-javascript'
);