Large File Download via Share Link

I am running NC 23 on shared hosting with the following
Apache Version 2.4.54
PHP Version 8.1.12
MySQL Version 8.0.27
Architecture x86_64
Operating System linux

My PHP.ini file is as follows
display_errors = Off
max_execution_time = 3600
max_input_time = 3600
max_input_vars = 1000
memory_limit = 2048M
post_max_size = 16G
session.gc_maxlifetime = 1440
session.save_path = “/var/cpanel/php/sessions/ea-php73”
upload_max_filesize = 16G
zlib.output_compression = Off

NC will sync large files to the server from my desktop to my notebook without a problem.

When I create a share link from the NC web interface and attempt to download that file from the link the download executes however the file is truncated. For example a 2G file will only download 900M. I have tested this in Firefox and Chrome.

Is there a remedy for this problem?

Normally, it is not restricted by Nextcloud. Depending on the php setup (as apache module or via fastcgi and similar implementations), there are different parts that can run into timeouts, the webserver, the fastcgi-stuff or the php process. It should be possible to increase logging of these parts and figure out where it fails. Or if you get stuff from external storage it can be a limited temp folder, but that should also appear in some logs.