Unable to download directory: size is too large

Hi folks,
I’m trying to download a folder, when I click the download button, a warning window comes out:

And I follow manual ,trying to configure it.
After setting max_upload_size and max_download_dir_size to 40960, restart both seahub and seafile, but problem still exist.

May I ask if I have missed any settings? Or is there something wrong with the operation.
Thank you so much.

Have you seen anything related on the logs on the server?