In assets when uploading a medium size file I get this error:

Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)

What does it mean? And how to fix?

up vote 37 down vote accepted

413 errors occur when the request body is larger than the server is configured to allow. Here’s how you can fix it, depending on your web server:

You also might want to try increasing PHP’s upload_max_filesize and post_max_size settings in php.ini or using the php_value directive in your .htaccess file if you’re using Apache (http://davidwalsh.name/php-values-htaccess).

You need to configure both nginx and php to allow upload size.

Nginx configuration

The client_max_body_size directive assigns the maximum accepted body size of client request, indicated by the line Content-Length in the header of request. If size is greater the given one, then the client gets the error "Request Entity Too Large" (413).

Source.

Spent a whole day working with the administrator at our web host trying to solve this problem. All the fixes suggested here and other sites did not help. The problem turned out to be with my third party VPN. Once that connections was turned off I was able to upload and install a Joomla extension without problem. So if you are getting a 413 message and nothing seems to fix it check that your VPN is not the culprit.

  • FYI... If the VPN was an issue that would mean that your company is not doing split tunneling (very common). Easy to see in most VPN route tables. If the route tables show 0.0.0.0 0.0.0.0 that means all traffic is routed over the VPN when connected. This also means when you connect to websites and other resources you are traversing your company network. So keep that in mind when you are connected. – user4036 Sep 1 '15 at 15:51

protected by Community Dec 10 '15 at 21:01

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.