Reply to Re: Upload JPEG and PDF

Re: Upload JPEG and PDF new!
by colin, 8 years, 10 months ago
Yes, by default the class blocks dangerous files, or at least some of them. Check out the no_script parameter.

As for the PDF, you need to allow the correct MIME type. For instance, here below, you are allowing PDF and image files:
$handle->allowed = array('application/pdf','image/*');
Reply

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