Nextcloud wont upload files bigger than 10 mb

Nextcloud version: 13.0.1
Operating system and version: Linux 3.14.79-fslc-imx6-sr (Debian 8)
Apache or nginx version: 2.4.10
PHP version: 5.6.33

The issue you are facing:
Files bigger than 10 MB wont upload to the server and get rejected by windows and android clients with an error.
When trying to upload via web UI files wont be accepted (cant drag and drop, when using file picker there is no response when choosing big files.

Is this the first time you’ve seen this error? : No, it was also in NC 12, but uploading big files via web worked, tried to update to get rid of it but things get worse.

Steps to replicate it:

  1. Place a file bigger than 10 MB in nextcloud folder on windows.
  2. Client sync fails.

The output of your Nextcloud log in Admin > Logging: (file name is Lecture2c.pdf)

Sabre\DAV\Exception\BadRequest: expected filesize 1024000 got 0
/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php - line 132: OCA\DAV\Connector\Sabre\File->createFileChunked(Resource id #67)
/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php - line 151: OCA\DAV\Connector\Sabre\File->put(Resource id #67)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1096: OCA\DAV\Connector\Sabre\Directory->createFile('Lecture2c.pdf-c...', Resource id #67)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 525: Sabre\DAV\Server->createFile('Lecture2c.pdf-c...', Resource id #67, NULL)
[internal function] Sabre\DAV\CorePlugin->httpPut(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479: Sabre\Event\EventEmitter->emit('method PUT', Array)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php - line 80: Sabre\DAV\Server->exec()
/var/www/nextcloud/remote.php - line 164: require_once('/var/www/nextcl...')
{main}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'sensitiveInfo',
  'passwordsalt' => 'sensitiveInfo',
  'secret' => sensitiveInfod',
  'trusted_domains' =>
  array (
    0 => 'sensitiveInfo',
  ),
  'datadirectory' => '/home/noam/cloud/data',
  'overwrite.cli.url' => 'https://.sensitiveInfo.net',
  'dbtype' => 'mysql',
  'version' => '13.0.1.1',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_noam',
  'dbpassword' => 'sensitiveInfo',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 0,
  'updater.secret' => 'sensitiveInfo',
  'tempdirectory' => '/home/noam/cloud/tmpUpload/',
);

The output of your Apache/nginx/system log in /var/log/____:

[Fri Apr 13 06:25:08.271715 2018] [mpm_prefork:notice] [pid 3106] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations
[Fri Apr 13 06:25:08.271907 2018] [core:notice] [pid 3106] AH00094: Command line: '/usr/sbin/apache2'
[Fri Apr 13 12:34:24.354952 2018] [mpm_prefork:notice] [pid 3106] AH00169: caught SIGTERM, shutting down
[Fri Apr 13 12:34:26.272521 2018] [mpm_prefork:notice] [pid 2077] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations
[Fri Apr 13 12:34:26.272930 2018] [core:notice] [pid 2077] AH00094: Command line: '/usr/sbin/apache2'
[Fri Apr 13 12:41:40.343646 2018] [mpm_prefork:notice] [pid 2077] AH00169: caught SIGTERM, shutting down
[Fri Apr 13 12:42:13.086918 2018] [mpm_prefork:notice] [pid 977] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations
[Fri Apr 13 12:42:13.222869 2018] [core:notice] [pid 977] AH00094: Command line: '/usr/sbin/apache2'