emabusi's avatar

Changing max post/upload size in Laravel 5.5

I want to upload a video file, about 10MB. I tried to override php's default upload sizes by setting these in AppServiceProvider boot function:

    ini_set("memory_limit", "100M");
    ini_set('post_max_size', '50M');
    ini_set('upload_max_filesize', '50M');

However these don't seem to help because I get the same error as before:

Warning: POST Content-Length of 8982677 bytes exceeds the limit of 8388608 bytes in Unknown on line 0

How can I achieve this in Laravel?

0 likes
2 replies

Please or to participate in this conversation.