ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

Test if file uploaded

ugly 08 Feb, 2010
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.
GreyHead 08 Feb, 2010
Hi ugly,

You can use the Joomla JFile class to check if the file exists.

Bob
ugly 09 Feb, 2010
Thank you for your answer Bob. Are uploaded files parked in their new directories by the time I test for their existence in "onsubmit"?
GreyHead 09 Feb, 2010
Hi 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
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com