Uploading error
Greetings Jason
im getting an error on line 74 of the helperphp.php file. Im getting this error "Parse error: syntax error, unexpected '[' in /home/betatestpage/www/www/valleywound/webassist/file_manipulation/helperphp.php on line 74"
here is the offending code
$fileArray = array();
if (is_array($_FILES[$fileField]['tmp_name'])) {
for ($x=0; $x<sizeof($_FILES[$fileField]['tmp_name']); $x++) {
if (is_uploaded_file($_FILES[$fileField]['tmp_name'][$x])) $fileArray[] = ['tmp_name'=>$_FILES[$fileField]['tmp_name'][$x],'name'=>$_FILES[$fileField]['name'][$x],'type'=>$_FILES[$fileField]['type'][$x],'size'=>$_FILES[$fileField]['size'][$x]];
}
} else {
if(isset($_FILES[$fileField]) && is_uploaded_file($_FILES[$fileField]['tmp_name'])) $fileArray[] = $_FILES[$fileField];
}
i have used the upload feature prefectly on a few projects but not sure whats going on. I have removed it to help with uploading but its removing the photo upload part that is need for just about everything. I am running php 5.3.29 and my data bridge is up to date.
thanks,
Eric