0

error screenshot first of all i have these settings in my htaccess

php_value memory_limit 4000M
php_value post_max_size 3000M
php_value upload_max_filesize 2500M
php_value max_execution_time 300

And also checked the phpinfo page , which shows the same data as of my htaccess file.

But still "Request Entity Too Large" 413 Error shows while uploading a 2gb zip file through an upload script.Why?

Jitu
  • 57
  • 7
  • but it's a local server running in my own system.localhost:8080 – Jitu Jun 27 '22 at 05:07
  • I think you need configure apache, not just php. https://serverfault.com/questions/256838/apache-responding-with-request-entity-too-large – shingo Jun 27 '22 at 05:08
  • This is the code i found there SecRequestBodyLimit 10485760 – Jitu Jun 27 '22 at 05:13
  • what is it and where to use it??? I don't have any idea – Jitu Jun 27 '22 at 05:14
  • 1
    Put it in the .htaccess file and restart the server. – shingo Jun 27 '22 at 05:19
  • not working brother... same problem.. – Jitu Jun 27 '22 at 05:23
  • i have added a screenshot of that page – Jitu Jun 27 '22 at 05:35
  • 2
    Your question is much like [this one](https://serverfault.com/questions/959964/413-error-in-apache-even-though-my-post-is-much-smaller-than-the-max-limit). From the screenshot, it's not a apache or php error, it's returned from your post request, so you may check your script. – shingo Jun 27 '22 at 05:49
  • But how small size files are uploading so smoothly with this script?? – Jitu Jun 27 '22 at 09:06
  • There are limits in the web server for how large a file it will handle. It is fast with small files because it is local (the data doesn't have far to go), but even fast data can hit a configured limit. – jwriteclub Jun 29 '22 at 08:10
  • Does this answer your question? [413 Request Entity Too Large - File Upload Issue](https://stackoverflow.com/questions/24306335/413-request-entity-too-large-file-upload-issue) – treckstar Jul 03 '22 at 09:32

0 Answers0