Form - Document (File Name) Field - size limit not working

I’m trying to set a maximum file size for uploaded PDF files, but it doesn’t work
neither in bytes, nor in MB, etc.