Hi,
I cannot seem to get the $_FILES values using the eform events.
I’m using
&eFormOnValidate=`uploadFile`
+
function uploadFile( &$fields, &$vMsg, &$rMsg ){
$userfile = $_FILES['userfile']['name'];
$file_size = $_FILES['userfile']['size'];
$file_temp = $_FILES['userfile']['tmp_name'];
$file_err = $_FILES['userfile']['error'];
$path = '/';
$fp = fopen('data.txt', 'a+');
fwrite($fp, '->' . $_FILES['userfile']['name']);
fclose($fp);
//move_uploaded_file($file_temp, $path);
return true;
}
$_FILES seems to be an empty array.
Is there another way I can find out the path of the temporary uploaded file so I can move it?
Thx