Reply to if uploading incorrect mime-type, stop submit

if uploading incorrect mime-type, stop submit new!
by Kathy, 10 years, 8 months ago
I've got my list of allowable file types identified as such:
$handle->allowed = array('image/jpeg', 'image/bmp', 'image/png', 'video/x-msvideo', 'video/quicktime');

When I submit my form, if I don't have one of type types above, the form submits, but the file is not uploaded. Is there a way for this class to throw an error and stop submitting or do I have to use js to do that? ThanksReply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important