I allow my users the option to upload an image, I then retreive the file name using
$filename1 =JRequest::getVar('image1');
How can I test if the user has uploaded an image? Thanks for any help here.
Test if file uploaded
4 posts • Page 1 of 1
Re: Test if file uploadedHi ugly,
You can use the Joomla JFile class to check if the file exists. Bob
Re: Test if file uploadedThank you for your answer Bob. Are uploaded files parked in their new directories by the time I test for their existence in "onsubmit"?
Re: Test if file uploadedHi ugly,
Yes, I think so. They are certianly in place by the time emails are sent. I think they are the first action after checking form permissions. Bob
4 posts • Page 1 of 1
Return to ChronoForms Questions & Answers Who is onlineUsers browsing this forum: yaksushi and 8 guests |


