diff options
author | Michiel Vugteveen <info@mvug.nl> | 2011-11-23 10:09:57 +0100 |
---|---|---|
committer | Michiel Vugteveen <info@mvug.nl> | 2011-11-23 10:09:57 +0100 |
commit | 8ff2da1c7457cfd04a28776705cea64cbb96716a (patch) | |
tree | 933a44c7342c00ce44b0e25b1146181d10bc8cd8 /system | |
parent | c11b5cea3c34cbb4f9f849b6940fa09c0e517f3d (diff) |
tmp_path does not exists, should be tmp_name
Diffstat (limited to 'system')
-rw-r--r-- | system/libraries/Upload.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php index 05511b5d3..fe5907ab2 100644 --- a/system/libraries/Upload.php +++ b/system/libraries/Upload.php @@ -1055,7 +1055,7 @@ class CI_Upload { if (DIRECTORY_SEPARATOR !== '\\' && function_exists('exec')) { $output = array(); - @exec('file --brief --mime-type ' . escapeshellarg($file['tmp_path']), $output, $return_code); + @exec('file --brief --mime-type ' . escapeshellarg($file['tmp_name']), $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]); |