Can't upload files larger than 16mb in shared folders

I have installed a Nextcloud server version 18.0.6 over Apache and PHP 7.2 that has been updated from version 16.
From the user interface I can upload files of any size after configuring the php.ini file.
When I share a folder, only files smaller than 16mb can be uploaded.
In the browser I can see the error [HTTP/1.0 400 Bad Request 6426ms]
With files smaller than 16mb there is no problem.
Can this restriction be removed somewhere in Nextcloud?