When I upload PDFs in the panel, Kirby shows a very selective behaviour and - unfortunately very often - refuses the upload. I don’t recognise any pattern that the file is too large or the content of the PDF is too complex. And unfortunately the error message is not very helpful in finding a cause. What exactly does Kirby check when uploading PDFs and how can I upload PDFs without converting them specifically for Kirby?
If this happens from a regular files section, there is only one place in the code where this error message can occur from and it is when PHP flags an error code with your upload but it doesn’t matches to any of these kirby/src/Api/Api.php at main · getkirby/kirby · GitHub error messages/translations. Do you find anything in the PHP error logs?
1 Like
It was worth having a look at the PHP logs
After the update from MAMP 6.x → 7.x the php.ini
values were reset to default. post_max_size: 8M
was definitely too little