nextcloud/apps/files
pjft 92c16b3d60 Fix bug introduced on drag and drop external files
Drag and drop of external (OS filesystem) to subdirectories in the browser would fail on specific cases, mainly when the subdirectory was no longer off the root folder.
This seemed to have been an issue introduced with the subdirectory free space calculation [here](f9536b0809) and it seems to fail for any subdirectory that doesn't belong to the root folder.

Bug reports:
- https://help.nextcloud.com/t/drag-drop-into-subfolders/120731
- https://github.com/nextcloud/server/issues/24720

I couldn't find any reference on scenarios or quota management that would suggest when a subdirectory's free space would be different to the parent's free space, other than when on the root folder, where subdirectories can be external mounts.

As such, if my understanding is correct (please review), this calculation can - and should - be made by getting the free space from the first subdirectory in the total path, which caters for all subdirectory scenarios.

Please advise, happy to help improve this.

Co-authored-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
Signed-off-by: pjft <pjft@users.noreply.github.com>
2021-10-17 19:32:45 +00:00
..
ajax Update php licenses 2021-06-04 22:02:41 +02:00
appinfo Bump app version 2021-09-29 10:07:22 +02:00
composer Add missing files for Composer v2 2021-08-16 08:25:35 +02:00
css Fix trashbin files view sticky action bar 2021-09-09 10:59:26 +00:00
img compress some images with tinypng.com 2020-05-22 13:07:11 +00:00
js Fix bug introduced on drag and drop external files 2021-10-17 19:32:45 +00:00
l10n [tx-robot] updated from transifex 2021-10-07 02:25:42 +00:00
lib Do not transfer shares for deleted users 2021-10-05 07:19:02 +00:00
src Use legacy call of generateOcsUrl 2021-09-21 10:42:05 +00:00
templates Improve notcreatable permissions hint 2021-07-16 09:02:45 +00:00
tests Fix bug introduced on drag and drop external files 2021-10-17 19:32:45 +00:00
.l10nignore Ignored compiled js files in files 2019-11-01 08:29:41 +01:00
list.php Update php licenses 2021-06-04 22:02:41 +02:00
recentlist.php Update php licenses 2021-06-04 22:02:41 +02:00
simplelist.php Update php licenses 2021-06-04 22:02:41 +02:00
webpack.js Bump js licenses 2021-03-31 12:17:18 +02:00