Unable to upload a file using a web application or webmail, the following error is shown:
An error occurred!
File upload failed
On uploading a big file via WordPress administrator interface, the following error is shown:
Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page.
The following error can be seen in the browser's console:
413 Request Entity Too Large
Webserver limits maximum filesize to be uploaded.
Note: The following solution increases the limit server wide.
Adjust the following settings of PHP handler assigned to the domain in Tools & Settings > PHP Settings > X.X.XX FPM application in php.ini tab:
Perform the following steps depending on the webserver serving PHP in Domains > example.com > PHP Settings:
For case PHP is served by nginx
For case PHP is served by Apache