php - Laravel 3 - POST Content-Length Exception -


running laravel 3.

i trying upload files laravel framework. if file larger php setting upload_max_filesize throws exception below.

i have tried in controller , routes no success (the if statement runs - sets session - exception still thrown showing error page)

if ($_server['content_length'] > 8380000) {     //do stuff here because big     // set session , exit() } 

how can prevent exception being thrown without upping php memory limits?

error:

unhandled exception  message:  post content-length of 9306598 bytes exceeds limit of 8388608 bytes location:  unknown on line 0 

as side note, question has been asked atleast twice in laravel forum no answer given except 'increase php memory limits'.

edit: problem seems laravel loading _post inputs before can check them in route or controllers. seems bug me.

this looks php's max post size, defaults 8m on many systems (around 8388608 bytes). there nothing can in laravel around handled/managed/configured @ php level. read increasing maximum post size see how change this.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -