WebbieWorks's avatar

PostTooLargeException error

I am trying to upload a file and I am getting the above error. I have changed my php.ini file and restarted the local server. Laravel Framework 5.8.17

post_max_size = 2048M
upload_max_filesize = 2000M

When I run php -i. I see the changes are there.

post_max_size => 2048M => 2048M
upload_max_filesize => 2000M => 2000M

I am completely confused on why I cannot upload a 25mb attachment. Any help would be greatly appreciated.

0 likes
3 replies
bobbybouwmann's avatar

This should work in general. Are you sure you updated the correct php.ini. The command line php.ini can be different than the php.ini that is being loaded by your webserver.

WebbieWorks's avatar

Yes, I edited the file located /etc/php.ini

Configuration File (php.ini) Path: /etc
Loaded Configuration File:         /etc/php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed:      (none)

Please or to participate in this conversation.