php - Request Entity Too Large with small files -
I know that there are many questions about the request unit too large on the internet but I I could not find the correct answer to my problem;)
I am using HTML file input tags to upload my images to users.
& lt; Input type = 'file' class = 'upload-pc' accept = 'image / *' id = 'folller' name = 'pro-picture' & gt; & Lt; Br>
There is nothing wrong with files less than 2 MB which is allowed by my site
But the problem is that if someone uploads a large file like 510 MB I can handle it by php and warn that this file is too large
if ($ _ files ['pro-picture'] ['size'] > 2000000) {dead ("huge"); }
But my problem is uploading a 5.10 MB file, the request unit will be launching a huge error and my other php codes could not work
I have checked the post_max_size and both upload_max_filesize are set to 8MB but I get an error at 5.10MB!
And I need to find a way to handle files 8 MB because there is no way to try to upload the user;) And I do not want to request Antitiges too much error Due to getting them dirty and broken pages
Is there any way completely disabled, set this error or upload_max_filesize and count the number of post_max_account?
You SecRequestBodyAccess off
.
Check the link I provided. It will help you
Comments
Post a Comment