Jonathan Coe
Jonathan Coe

Reputation: 1485

"Connection Interrupted" when uploading file larger than 10mb

I have an application (html form) that allows users to upload a file to the server. When the file is larger than 10mb, it kicks the user directly to a "Connection interrupted" page.

Server is setup as follows:

Under php.ini (for both fpm and php proper) the max-upload size and post-max is set to 20mb. Form field has a max file size of 200000000

Any ideas as to what this could be? Is this an nginx problem?

Upvotes: 0

Views: 609

Answers (1)

Leonov Mike
Leonov Mike

Reputation: 923

In nginx server config put:

client_max_body_size 20m;

Upvotes: 1

Related Questions