Image upload not woking
Hi I am trying to set up a product images upload system for a back end. I have created a test file with a form containing a file field and a submit button. From the Webassist Server behaviours I have added the file upload behaviour. I have completed the upload wizard and uploaded all the file and folder.
When I check the page it gives me a blank pages. Please see link below:
http://www.hackneyhydroponics.co.uk/demo2014/file_uploader.php
___________
I have inserted PHP error display code and it give the following error:
Parse error: syntax error, unexpected '[' in /home6/hackney5/public_html/webassist/file_manipulation/helperphp.php on line 74
----------------
The code on line 47 of the helperphp.php file is:
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]];
_________
If I remove this line it displays the content of the page but the upload dose not work.
Please advise where I am going wrong. Many thanks