I’m trying to get this to upload a file and change the file name to a a &runSnippeunique name
I’m calling
&eFormOnBeforeFormParse=`populate_hidden_fields` &eFormOnBeforeMailSent=`save_file` &runSnippet=`uploadForm_processor`
this is my input inside the form
<input type="file" name="uploadfile" id="uploadfile" value="" eform="uploadfile::"></input>
and inside the save_file function I have
function save_file(&$fields){
echo (generate_id());
echo ("\n\n\n");
var_dump($fields);
echo ("\n\n\n");
var_dump($_FILES);
}
the first var_dump is fine, except the file name ends up being a single character (not part of filename) and the $_FILES returns
array(0) {
}
any idea what I’m doing wrong ?
Thanks in advance