Cannot cancel upload when not using file chunking

Nextcloud version (eg, 20.0.5): 23.0.4
Operating system and version (eg, Ubuntu 20.04): Debian 11
Apache or nginx version (eg, Apache 2.4.25): replace me
PHP version (eg, 7.4): replace me

After I set max_chunk_size to 0, which means not using file chunking, I can’t cancel upload when uploading a file. When I click the ‘X’ button, my cloud displays a message that the upload is canceled, but my device keeps transferring the file. If I set to use file chunking, upload can be canceled without any problem.

Can I know what is causing this problem? I can’t find any log related to this problem.