Internal error on UPLOAD: MySQL server has gone away at

Nextcloud version (eg, 10.0.2):11.0.1
Operating system and version (eg, Ubuntu 16.04): shared hosting at OVH, prop. Debian Jessie
Apache or nginx version (eg, Apache 2.4.25): Apache/2.2.22
PHP version (eg, 5.6): 7.0
Is this the first time you’ve seen this error and can you replicate it?: can replicate

The issue you are facing:
When uploading file with 50MB the upload is OK.
Uploading 120MB getting enclosed error.
The file is completly uploaded with extension *.part, but not included to nextcloud DB and so not visible.

The output of your Nextcloud log in Admin > Logging:
Error no app in context Doctrine\DBAL\Exception\DriverException: An exception occurred while executing ‘SELECT fileid, storage, path, parent, name, mimetype, mimepart, size, mtime, storage_mtime, encrypted, etag, permissions, checksum FROM oc_filecache WHERE storage = ? AND path_hash = ?’ with params [1, “053d1965112fe49bacc1292c322b4fd0”]: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away 2017-02-04T14:09:46+0100
Error PHP PDOStatement::execute(): Error reading result set’s header at /home/domain/nc/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php#91 2017-02-04T14:09:46+0100
Error PHP PDOStatement::execute(): MySQL server has gone away at /home/domain/nc/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php#91 2017-02-04T14:09:46+0100

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

<?php $CONFIG = array ( 'instanceid' => 'xx', 'passwordsalt' => 'xxx', 'secret' => 'xx', 'trusted_domains' => array ( 0 => 'domain', ), 'datadirectory' => '/home/domain/data', 'overwrite.cli.url' => 'http://domain', 'dbtype' => 'mysql', 'version' => '11.0.1.2', 'dbname' => 'xxx', 'dbhost' => 'xxx.db', 'dbtableprefix' => 'oc_', 'dbuser' => 'xxx', 'dbpassword' => 'xxx', 'installed' => true, 'default_language' => 'de_DE', 'loglevel' => 1, 'logtimezone' => 'Europe/Berlin', 'enable_avatars' => false, 'knowledgebaseenabled' => false, 'allow_user_to_change_display_name' => false, 'enable_previews' => true, 'mail_from_address' => 'xxx', 'mail_smtpmode' => 'php', 'mail_domain' => 'domain', 'skeletondirectory' => '', 'session_lifetime' => 14400, 'session_keepalive' => true, 'maintenance' => false, 'singleuser' => false, 'theme' => 'xxx', );

The gone away message simply means the connection to the Mysql server has been interrupted. This could be a time out at the Mysql level, the PHP level, or a number of other places. I would start with adjusting your PHP, and Mysql time outs. Since it’s shared hosting, you may need to ask your host to make the adjustments for you.