Steps to reproduce:
- Create new Media -> File
- Select large binary file (tested with ~200MB .txt file)
- Try to publish content
You will get a 500 error (Status Code header contains 400) and exception:
For small files (tested with 1MB .pdf) everything works as expected.
It seems that the problem with large files starts here:
so probably comes from Symfony itself.
Please take a look at the screenshots from the debugger.
For the small file, you can see correct inputUri value, file is in /tmp/ directory as it should, also, fileSize value is correct.
For the large file, inputUri leads to application web directory, and fileSize is 0.