I'm messing with the file upload capability, but am having problems with uploading large files whereby files that are too large (which I'll define below) are failing with no indication; Yii just displays a blank create form again.
Here's my environment:
Files < 1MB upload OK. Yii correctly reports an error if the file >1MB but < 8MB. The problems occur for files > 8MB - the only indication I have of failure is a message in the PHP Log:
I could obviously change the limits here, but the troubling part is that when they're exceeded, the app fails silently. What do I have to change in order to catch / report the problem?
Here's my environment:
- I have a validator rule set (arbitrarily) defining maxSize as 1MB
- main index.php has YII_DEBUG defined, and PHP.INI has display_errors=on & error_reporting=E_ALL | E_STRICT
- Running XAMPP with PHP 5.3.8 & Yii 1.1.10
- PHP.INI has post_max_size = 8M
Files < 1MB upload OK. Yii correctly reports an error if the file >1MB but < 8MB. The problems occur for files > 8MB - the only indication I have of failure is a message in the PHP Log:
PHP Warning: POST Content-Length of 9968457 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
I could obviously change the limits here, but the troubling part is that when they're exceeded, the app fails silently. What do I have to change in order to catch / report the problem?