Issue uploading files greater than 152MB to external S3 storage

Steps to reproduce

  1. Attach S3 external storage
  2. Create file larger than 150MB (dd if=/dev/zero of=TwoHundred bs=1M count=200)
  3. Attempt to upload file greater than 152MB through web or desktop client (Linux Tested)

Expected behaviour

File should be uploaded.

Actual behaviour

File fails to be uploaded. Error is thrown

Server configuration

Operating system: Linux

**Web server:**Ubuntu Server 16.04

**Database:**Redis

**PHP version:**7

ownCloud version: 10.0.8.5

Updated from an older ownCloud or fresh install: Fresh

Signing status (ownCloud 9.0 and above):

The content of config/config.php:

<?php $CONFIG = array ( 'passwordsalt' => '', 'secret' => '', 'trusted_domains' => array ( 0 => 'owncloud.fubar.org', ), 'datadirectory' => '/app/data/ocdata', 'overwrite.cli.url' => 'https://owncloud.fubar.org', 'dbtype' => 'pgsql', 'version' => '10.0.8.5', 'dbname' => '', 'dbhost' => 'postgresql', 'dbtableprefix' => 'oc_', 'dbuser' => '', 'dbpassword' => '', 'logtimezone' => 'UTC', 'installed' => true, 'forcessl' => '1', 'mail_smtpmode' => 'smtp', 'mail_smtpauth' => 'login', 'mail_smtphost' => 'mail', 'mail_smtpport' => '2525', 'mail_smtpname' => 'owncloud.app@fubar.org', 'mail_smtppassword' => '', 'mail_from_address' => 'owncloud.app', 'mail_domain' => 'fubar.org', 'updatechecker' => false, 'lost_password_link' => 'https://my.fubar.org/api/v1/session/password/resetRequest.html', 'logfile' => '/run/owncloud/owncloud.log', 'loglevel' => '3', 'redis' => array ( 'host' => 'redis-b779a986-7ebc-4ca7-9385-cbfdd421a465', 'port' => '6379', 'password' => '', ), 'memcache.local' => '\\OC\\Memcache\\Redis', 'memcache.locking' => '\\OC\\Memcache\\Redis', 'integrity.check.disabled' => true, 'instanceid' => 'oci8d0mqk8zy', 'ldapIgnoreNamingRules' => false, 'maintenance' => false, 'mail_smtpauthtype' => 'LOGIN', 'mail_smtpsecure' => 'ssl', ); **Are you using external storage, if yes which one:** S3 **Are you using encryption:** yes **Are you using an external user-backend, if yes which one:** Webdav ### Client configuration **Browser:**Firefox 60.0.1 **Operating system:**Solus Linux ### Logs Desktop Client Error - owncloud --logwindow |05-31 13:15:42:474 [ info sync.database ]:|Setting blacklist entry for "Folder/Temporary/TwoHundred" 2 "Error transferring https://owncloud.fubar.org/remote.php/dav/uploads/fubar/2496752838/.file - server replied: " 1527768942 125 1527768575 "" "" 0| |---|---| |05-31 13:15:42:474 [ info sync.propagator ]:|blacklisting "Folder/Temporary/TwoHundred" for 125 , retry count 2| |05-31 13:15:42:475 [ warning sync.propagator ]:|Could not complete propagation of "Folder/Temporary/TwoHundred" by OCC::PropagateUploadFileNG(0x55d6de68acf0) with status 9 and error: "Error transferring https://owncloud.fubar.org/remote.php/dav/uploads/fubar/2496752838/.file - server replied: "|

Server logs or it didn’t happen. If there are more log files that you think they might be relevant, please include them.