Unable to drag and drop files and folders

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 28
Operating system and version (eg, Ubuntu 20.04): Rocky Linux 9
Apache or nginx version (eg, Apache 2.4.25): 2.4.57-5
PHP version (eg, 7.4): 8.3

The issue you are facing: When dragging and dropping files and folder to nextcloud using Chrome or Edge, flickkering occurs and are shown a blue screen. THe files/folders are not uploaded. And the URL in the browser points to the local files

Is this the first time you’ve seen this error? (Y/N): N

Steps to replicate it:

  1. Log into Nextcloud
  2. Click on Files
  3. Drag and drop files or folders

The output of your Nextcloud log in Admin > Logging:

{"reqId":"ZXxjANO6ImOQiznv9-SFgQAA1wk","level":3,"time":"2023-12-15T14:30:25+00:00","remoteAddr":"217.74.156.85","user":"mads@eccentric.dk","app":"PHP","method":"POST","url":"/index.php/settings/apps/enable","message":"Allowed memory size of 134217728 bytes exhausted (tried to allocate 265337120 bytes) at /srv/eccentric/cloud/public_html/lib/private/Installer.php#301","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.0.11","data":{"app":"PHP"}}
{"reqId":"ZXxjB9O6ImOQiznv9-SFhAAAwgk","level":3,"time":"2023-12-15T14:30:33+00:00","remoteAddr":"217.74.156.85","user":"mads@eccentric.dk","app":"PHP","method":"POST","url":"/index.php/settings/apps/enable","message":"imagettftext(): Could not read font at /srv/eccentric/cloud/public_html/apps/richdocuments/lib/Service/FontService.php#228","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.0.11","data":{"app":"PHP"}}

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

<?php
$CONFIG = array (
  'instanceid' => 'X',
  'passwordsalt' => 'X',
  'secret' => 'X',
  'trusted_domains' =>
  array (
    0 => 'cloud.eccentric.dk',
  ),
  'datadirectory' => '/srv/eccentric/cloud/public_html/data',
  'dbtype' => 'mysql',
  'version' => '28.0.0.11',
  'overwrite.cli.url' => 'X',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'X',
  'installed' => true,
  'maintenance' => false,
);

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

[Fri Dec 15 22:04:40.356311 2023] [access_compat:error] [pid 6496:tid 6679] [client 85.81.43.174:56885] AH01797: client denied by server configuration: /srv/eccentric/cloud/public_html/data/.ocdata
[Fri Dec 15 23:03:02.072739 2023] [access_compat:error] [pid 6719:tid 6737] [client 85.81.43.174:57597] AH01797: client denied by server configuration: /srv/eccentric/cloud/public_html/data/.ocdata
[Fri Dec 15 23:08:14.102555 2023] [autoindex:error] [pid 6719:tid 6737] [client 85.81.43.174:57737] AH01276: Cannot serve directory /srv/eccentric/cloud/public_html/apps/files/: No matching DirectoryIndex (index.php,index.html) found, and server-generated directory index forbidden by Options directive
[Fri Dec 15 23:12:43.857459 2023] [autoindex:error] [pid 6719:tid 6743] [client 85.81.43.174:57814] AH01276: Cannot serve directory /srv/eccentric/cloud/public_html/apps/files/: No matching DirectoryIndex (index.php,index.html) found, and server-generated directory index forbidden by Options directive
[Fri Dec 15 23:17:52.229001 2023] [access_compat:error] [pid 6497:tid 6571] [client 85.81.43.174:57858] AH01797: client deni

PASTE HERE


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE
1 Like

Can confirm, having the same issue.

Known Issue and the reason why I do not yet use nc 28 on my productive servers:

Much luck,
ernolf

1 Like

Same issue here with NC 28.0.0

1 Like

Same issue, no matter what browser I’ve tried, it doesn’t work (under Windows & MacOS)

Experiencing the same problem as the OP

I have same problem with the latest Nextcloud-AIO(v7.8.1) docker(with Nextcloud 28.0.1 RC1)

Same issue in Firefox. Slight difference in that it doesn’t flicker, but also points to the local file (which triggers a download in that case).

Nextcloud 28

Same here on nextcloud 28 linux server version, i can replicate this in linux and windows in both brave + chrome + firefox browsers.

A fix for this has already been merged:

Yes, it will be fixed in 28.0.2 scheduled for January.

3 Likes

File drag and drop now works for NC 28.0.1 Folder drag and drop still doesn’t work, but hopefully this will be fixed in NC28.0.2 in January. Also the default drag action seems to be to ‘move’; ‘copy’ would be much better in these uncertain bug-squishing times.

I appreciate everyone’s efforts.

Also it must be said that the NC web updater worked flawlessly.

2 Likes

For me, the file drag and drop also does not work under Nextcloud 28.0.1 and the Edge browser.
The update from major version to major version of Nextcloud is becoming more and more of a grab bag full of nasty surprises.

1 Like

It’s not fixed in 28.0.1: [stable28] fix(files): drag and drop by AndyScherzinger · Pull Request #42409 · nextcloud/server · GitHub

2 Likes

As a workaround you can use the Copy/Move button at the top (that was re-added in 28.0.1) or the Copy/Move option in the right-click menu.

This is what I use most of the time anyways, at least when I move multiple files or folders.

I checked Firefox on Mac 121.0 and more or less it works with drag and drop. Not really nice but I can live with it.
NC 28.0.1 php8.3 on a PI.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.