[eluser]thisischris[/eluser]
I have also recently gotten that error. I think someone forget to select a file and hit upload anyway. Now each time it gives me the error.
I found this in the log: ERROR - 2012-03-25 11:22:36 --> Severity: Notice --> Undefined index: tmp_path /homepages/14/xxxx/htdocs/xxx/system/libraries/Upload.php 1058
which is this block: [codeif (DIRECTORY_SEPARATOR !== '\\' && function_exists('exec'))
{
$output = array();
@exec('file --brief --mime-type ' . escapeshellarg($file['tmp_path']), $output, $return_code);
if ($return_code === 0 && strlen($output[0]) > 0) // A return status code != 0 would mean failed execution
{
$this->file_type = rtrim($output[0]);
return;
}
}[/code]
This line basically: @exec('file --brief --mime-type ' . escapeshellarg($file['tmp_path']), $output, $return_code);
It works perfectly in my localhost (windows) however the server is definitely linux.