Questions & Answers

Error 413 however all settings seem fine on large file upload

I'm getting a 413 error however I have set client_max_body_size to be 15G. The file in question is 6.8gb. I have no issues with files between 0-500mb but this is the first large file I have tested. Any ideas on where else I should check or what the solution might be?

UPDATE: I am also chunking the file in upload using Dropzone.js and using a library to piece it together. I think it's not actually splitting the chunks so this could be my issue.. will investigate further.

Browser Error PHP ini settings Server Setting

2023-01-07 20:30:46
If I research this I see in various spot that if you use Chrome, you will be limited to 4GB per file. This info seems old. Other browsers allow similar or smaller file sizes. It is possible that 64-bit versions of browsers allow bigger files. The question is whether it is wise to use the HTTP protocol for such large files? If you really must, why not chop the file into pieces with Javascript and reconstruct it after the upload?
2023-01-07 20:30:46
Ah, I wasn't the first one to think of this:…
2023-01-07 20:30:46
@KIKOSoftware thanks for replying. I am already chunking the file to 250mb sections and it is pieced together on the server. I feel like the 413 could be happening upon the script moving the file?
2023-01-07 20:30:46
I think post_max_size might be too small (see: , and ceil(6.8Gb /3)*4 = 12Gb )
2023-01-07 20:30:46
P.S.: Please do not post images of code/error messages (In this case no one will find post_max_size. It is only visible for those who actually take a look at that picture.... )
Answers(0) :