"An unknown error has occurred" when trying to upload a directory

Nextcloud version 19.0.3
Operating system and version Debian 10
Apache 2.4.38
PHP version7.3

It’s the first time I see it

I drag and drop a directory to Nextcloud opened in Firefox
The copy seems to start
A notification “An unknown error has occurred” appears at the top of the window
There’s nothing in the log at the time of the error.


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

$CONFIG = array (
  'instanceid' => 'occcdmttu736',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' => 
  array (
    0 => 'cloud.',
  'datadirectory' => '/home/sites/nextcloud/data',
  'overwrite.cli.url' => 'http://',
  'dbtype' => 'mysql',
  'version' => '',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud',
  'dbpassword' => 'cloud!!e',
  'logtimezone' => 'UTC',
  'installed' => true,
  'mail_from_address' => 'nextcloud',
  'mail_smtpmode' => 'php',
  'mail_domain' => '*',
  'updater.secret' => '',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'updater.release.channel' => 'stable',
  'app_install_overwrite' => 
  array (
    0 => 'documents',

There isn't something special in the apache logs.

There is one thing that could cause a problem, it's that the full path of the directory where I try to upload is rather long.
1 Like

I think I have found the reason of the error : in the directory that I wanted to copy there was a file with the extension .zip.part
a file which wasn’t completely downloaded. I have deleted this file from the source directory and then the error disapeared.
The problem is that the system should give more informations on the error : I haven’t found anything in the logs or anywhere about this.

1 Like

If you want to upload files then I would use Flow Upload