Max upload size not working on webdav (I want to limit the size)

Nextcloud version (eg, 18.0.2):
Operating system and version (eg, Ubuntu 20.04): 20.04LTS
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.41
PHP version (eg, 7.1): Php-fpm 7.4

The issue you are facing:

I am trying to limit the max upload size of webdav

Is this the first time you’ve seen this error? (Y/N): Yes

Steps to replicate it:

  1. Set your php_max_upload to 1gb for example
  2. Same for wp_post
  3. Check that you have nothing in the .htaccess that put this limiter higher
  4. Try to upload a 2gb file via webdav.
  5. It goes trought while it should stop the upload at 1gb

Any idea why it isn’t limiting ?