[Bug]: Drag&Drop folder upload not working
[!TIP]
Help to prioritize this issue
- Use the 👍 reaction to show you are also affected
- Avoid commenting unless you have relevant information to add; unnecessary comments create noise for subscribers.
- Subscribe to receive notifications about status changes and new comments.
Bug description
After updating to version 33 the Drag&Drop upload of a folder to an external S3 storage doesn't work anymore. I get the following messages:
Some files could not be uploaded
Target folder does not exist any more
Tested with Safari and Firefox. The error is present only when folders are uploaded and only when the destination is an external S3 storage. Single or multiple files upload via Drag&Drop without issues.
Curiously the uploaded folders structure is created in user's root folder instead and it's empty (no files). Only the folder tree is created.
Steps to reproduce
- Upload via Drag&Drop a folder (or a bunch of nested folders) to an external S3 storage destination in Nextcloud via browser
- Error notification appear, no files are uploaded and an empty folder tree is created in user's root instead
Expected behavior
The uploaded folder structure should be created in the S3 destination folder and its content files uploaded.
Nextcloud Server version
33
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.3
Web server
Apache (supported)
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 31 to 32)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
- [x] Default user-backend (database)
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
From internal tickets it seems to occur on 31.0.14 among others.
Additional information:
- The S3 storage is irrelevant, this also happens with local storage
- The issue seems to be that the frontend issues the MKCOL for the missing directory to the parent folder of the one where the drop is performed
Can reproduce on 33. On 31.0.13 everything is fine, will check 31.0.14.
Oh, I see now. Thanks.
I've just tried and indeed it happens with local storage too. It works fine if the upload happens in the user's root, though – this is the reason why I assumed it was working locally in any folder.
BTW, I usually don't use the drag&drop feature. A colleague of mine does and stated that before the update it was working.
But for me the "+ new" menu -> "upload folder" works fine. So maybe use that as a workaround in the meantime.
Yes, the upload works when invoked through menu. It's what I suggested to my colleague. The issue is specifically related to the drag&drop way of uploading.
I wonder how this can happen, this is the third time the drag and drop functionality is broken in some form or another on a new major release ...
Also happening on our 31.0.14 instance resulting in an empty folder appearing in root. The bug only occurs when uploading into non-root folders. Drag&drop into the root folders works without issues.
As far as I can tell, this will only be fixed by https://github.com/nextcloud/server/pull/59294 (so, 32.0.9 and 33.0.3).
only fixed partially
In 33.0.2 the NC error doesn't appear anymore, but the upload is failing nontheless.
In 33.0.2 the NC error doesn't appear anymore, but the upload is failing nontheless.
i can confirm that the error is still is there. On Firefox it works, Chrome still is not sending the MKCOL so the uploads fail...
Firefox. 33.0.2. Uploading to a teams folder -> same error.
I'm mentioning that because my issue https://github.com/nextcloud/groupfolders/issues/4515 was closed as a duplicate to this issue.
Actually some users reported to me as well that this problem also persists with Firefox. Also, what might be the actual root cause, the folders ARE created, but not on inside the folder where i Drag & Drop it but on the users nextclouds root / of files. So if i upload the same folder to the users root / , it will always work to upload. Please reopen that issue.
When testing this on 33.0.2 with Google Chrome, there is no error appearing, it just gets stuck on "Uploading 1s". The folder is actually created, but in the root folder, despite me uploading in a different one. Files do not get uploaded. mod_security reports a lot of spam about things using the wrong path and fail2ban will ban the user due to causing these errors.
So this issue is not fixed.
Dear all, please avoid commenting unless you have relevant information to add; unnecessary comments create noise for subscribers. This issue was fixed and backports are scheduled for April releases of supported Nextcloud versions. For general discussion you can use our forums instead: https://help.nextcloud.com/
Please have a look at the PR that closed this issue: https://github.com/nextcloud/server/pull/59294
If you look at the milestone of the backports you can see that they are scheduled for next releases (e.g. 33.0.3):