Open mm86133 opened 1 month ago
Hi @mm86133 413 Payload Too Large
error is a server error you will have to diagnose in your server settings and php settings.
in php.ini
upload_max_filesize = 20M
post_max_size = 20M
in nginx.conf
client_max_body_size 20M
Also note orangehrm application is encoding files to base64 format for network transfer. this increases the file size by 33% better to allow for headroom.
OrangeHRM version
OrangeHRM OS 5.6.1
Environment details
Describe the bug
src/plugins/orangehrmCorePlugin/Service/ConfigService.php changing to 11048576 does not help at all.
PHP is set to accept 80MB.
I saw number of same errors in other tickets, all were closed without solution (ticket closed => tests were done and fix was merged into the master).
To reproduce
Upload > 1MB, change ConfigService.php to 10MB, reset
Expected behavior
Fails during post 413 Payload Too Large
Relevant log output
No response