I have a HTML form with fields such as name, address, notes, etc. I also have a field to upload a PDF. The uploaded PDF get’s stored on the file system.
How can I accomplish this if possibly the PDF files are larger than 2 MBs? Also, for some reason, the uploading of the PDF (< 2 MBs) works fine in Chrome, but not in IE. In IE, the upload doesn’t even begin, but in Chrome, it completes fine.
Form header looks like:
method='post' ENCTYPE='multipart/formdata'
edit: the ini setting didn’t help
The HTML
<input type='text' name='user' />
<input type='file' name='userfile' />
Try adding this to the top of your script:
If that doesn’t work, you can try changing that setting in php.ini
If none of this is applicable to your problem, include more of your code.
Also, change:
multipart/formdatato:
If the problem persists, inspect the $_FILES array (print_r($_FILES))