Hi, I’m trying to upload a file of ~80mb through the panel. This fails (Status 500) and the server response is: {"status":"error","code":2,"message":"The file is missing in file: \/path\/to\/site\/kirby\/vendor\/getkirby\/toolkit\/lib\/upload.php on line: 198"}
My php.ini looks like this (also checked via phpinfo()):
post_max_size = 250M
upload_max_filesize = 250M
memory_limit = 300M
max_execution_time = 300
Panel Uploads work for files smaller than 64mb. Uploads through a simple upload script also work for files larger than 64mb. Only large files uploaded through the panel fail.
My Kirby and Panel versions are 2.5.7
Does anyone have any ideas as to what might cause this?
I had the same issue with 1und1 about two years ago (not with Kirby, but another in-house application) and talked to their support just to find out that it just wasn’t possible to upload any bigger files. We then had to change providers. Don’t understand why your upload script works, then, though.
But I just tested to upload the same 100 mb file in a Kirby installation on an 1und1 server and on another one, and it wasn’t possible on the 1und1 server, but worked on the other server. Max. was indeed around 64mb.
Okay thanks for the quick help so far. I’ll try to contact the 1and1 support tomorrow. In the meantime I confirmed that the simple upload script does indeed work with a ~150mb file. Also I am able to upload large files with kirby on a local server. I can’t really explain this behavior.
I just had a call with the 1and1 support and they confirmed the upload_max_filesize limit of 64M. Me being able to upload larger files with the simple script seems to be bug or maybe even a vulnerability.