Disable the use of attachments on self-host enterprise

Is there a method to disable the file upload on my entire self-hosted server? I tried to set following variables to an empty value:

globalSettings__attachment__baseDirectory=
globalSettings__attachment__baseUrl=

I saw the following Post:

But after setting the variables, restarting and even rebuilding with:

./bitwarden.sh rebuild

I can still upload files. I am in an enterprise environment and I don’t want my users to upload to the Server. This is not a file-share. I have limited storage and there are other options for this in my environment.