First off… make sure, that you do have enough space in /tmp, since php places the upload temporarily in /tmp. You can also configure php to use another folder for that.
I have another folder for upload at another HDD. In config.php changed the line: ‘datadirectory’ => ‘/mnt/nextcloud/data’, so i can upload file for 4gb, 1gb and other. On another HDD I have about 500Gb free space. After upload big file free space on HDD become smaller.
Yeah, but that’s only where the file gets copied to, after it has been uploaded to a temporary location. Check your /etc/php.ini for this value and see where it points to:
; sys_temp_dir = "/tmp"
Then make sure, that there is enough space at the destination or point sys_temp_dir somewhere, where the is. Just remember to mind the permissions of the location, where you point it to.
I don´t know the exact parameter, but you´ll find it in php.ini somewhere.
How long do you wait until you see the timeout message? Does it start sending the files but then brings the error after some time? My suggestion only applies if the latter is true.
In php.ini I found:
default_socket_timeout = 35000 (increase for 35000)
mysql.connect_timeout = -1 (change from 60)
oci8.persistent_timeout = -1
bliat
;sybct.login_timeout= (do not touch)
;mssql.connect_timeout = 5 (do not touch)
;opcache.force_restart_timeout=180 (do not touch)
;mysqlnd.net_read_timeout = 31536000 (do not touch)
I waiting about 6 hour to see the timeout message. It start uploading file to server and after 6 hour i saw error. And after uploading i can see uploaded file in debian’s dirrectory (/mnt/shared_disk/nextcloud/user/uploads) but I don’t saw him in nextcloud (browser or sync client).
I think you cannot determine the 64bit/32bit-version from this information.
I determined the version by following this advice on SO https://stackoverflow.com/a/5424121/5418064
However, there is only a slight chance that this is your problem. But, if you have a 32-bit PHP version you will certainly not be able to have files > 4 GB in your Nextcloud.