Image Upload Error

wibadd 07 Feb, 2013
I almost have my form working correctly except for the image upload. I added custom code to check for min. dimensions of the image upload, but I keep receiving the following error which I havne't been able to crack.

JFTP: :write: Bad response
Couldn't write to upload folder

Parse error: syntax error, unexpected '[', expecting ')' in /usr/local/pem/vhosts/107732/webspace/httpdocs/administrator/components/com_chronoforms/form_actions/custom_code/custom_code.php(19) : eval()'d code on line 2

I have set the permissions to 777 on the directory and still receive the error. Aso, I checked the custom_code.php file to see what the error may be referencing, but I can't figure it out.
GreyHead 07 Feb, 2013
Hi wibadd,

The eval()'d code on line 2 refers to the code you have put into the Custom Code action. What is there?

This si almost certainly going to be a permissions issue. One thing to try is to make sure that FTP is *not* enabled in your site Global Configuration. If it is enabled then Joomla! tries to use it and very often the FTP user has different permissions to the Joomla! user.

Bob
This topic is locked and no more replies can be posted.