For the entries you provided, my .htaccess and .user.ini are similar. Config also.
You could try some testing without SSL to see if the problem happens. 2.4 MB is a surprisingly low threshold for the problem to occur, unless your upload speed it severely limited and it is a timeout issue of some sort.
You could also try testing it using a webdav client connection, instead of a web browser connection. Note the slightly different path for that. I believe that takes PHP out of the equation.
My guess is that Owncloud would not be a solution unless randomly so! Good luck, sorry I can’t be of more help.
I have tried with webdav clients on linux, android and freebsd. I don’t think there’s any getting round php as (I think, might be wrong) dav in nextcloud is mediated by Sabre which is itself php. i’ll try disabling https later (this is problematic because HSTS is enabled)
I think you’re right in that owncloud wouldn’t be a solution as that also uses Sabre and from what I’ve read, it’s this part of it that appears to be the issue.
ok, took off ssl, same result. Also loaded a minimalist httpd.conf, same result.
Next step is to grab latest nextcloud from themselves, move the old nextcloud dir over and start again. i’ll prob need to create a new db as well
I also spun up an ubuntu 18.10 vm and ran the snap install and this did not have this problem. 18.04 has its own issues installing as a vm (python/curtin errors) so that wasn’t tested as I have no bare hardware available right now.
ok - can confirm this happens in a brand new install in a brand new directory without ssl with a basic httpd config and a new mysql database on freebsd-12. only other thing to check i guess is my.cnf
heh. fixed my problem thanks firstly to you and also people on the github thread. Here’s what fixed it:
(basically commented out the loadmodule statement for mod_reqtimeout and restarted apache)
One thing that was confusing me though was that on an earlier installation, uploads were working. That one also has reqtimeout enabled and no extra config for it.
Hmm because i get this error in the actual version.
Sabre\DAV\Exception\BadRequest: Expected filesize of 47186681 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 44924928 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.