I have an html page which POSTS files to a PHP backend - either using Ajax or through a hidden iframe.
Using Ajax I can upload files up to the limits set in my .htaccess (10M)
When I use IE - files above 2M are rejected with "Error 1:The uploaded file exceeds the upload_max_filesize directive in php.ini".
It's as if requests passed with
Content-Type: multipart/form-data; boundary=---------------------------7db16f8c3114c
See a different PHP.INI setting than those that are
Content-Type: application/octet-stream
This is especially troublesome since IE cannot use XHR - so a large part of my users can't upload large files.
Any idea why this is happening?
Technical details:
- Server: Linux, Apache, PHP 5.2.17
- PHP ini settings (set in .htaccess, and checked using phpinfo):
- upload_max_filesize 10M
- post_max_size 10M
- memory_limit 24M
- HTML Form enctype="multipart/form-data"