nextcloud/apps/files/js
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
..
dist Use legacy call of generateOcsUrl 2021-09-21 10:42:05 +00:00
templates Show sharing in menu in grid view 2019-03-21 08:14:16 +01:00
app.js add missing order attribute to tag multiselect action 2021-07-29 19:41:59 +00:00
breadcrumb.js refs #21263 round numbers when checking if breadcrumbs should be hidden 2021-07-28 16:48:17 +00:00
detailfileinfoview.js Make file actions work from sidebar 2015-08-12 17:30:20 +02:00
detailsview.js Fix rendering of the sidebar in Files app 2018-11-22 05:58:25 +01:00
detailtabview.js Merge pull request #11647 from nextcloud/make-possible-for-tab-views-to-add-css-classes-to-their-container 2018-10-31 15:37:48 +01:00
favoritesfilelist.js Use DOMContentLoaded and fix sharebymail loading issue 2020-07-20 12:42:08 +02:00
favoritesplugin.js Fix jsdocs build on server repo 2018-10-24 15:41:08 +02:00
file-upload.js Fix bug introduced on drag and drop external files 2021-10-17 19:32:45 +00:00
fileactions.js Remove "Reject share" for pending remote shares 2021-08-10 13:27:57 +02:00
fileactionsmenu.js refactor: fileActions.getCurrentDefaultFileAction() 2020-04-08 18:19:58 +02:00
fileinfomodel.js added quit option in commentstabview.js 2017-03-23 13:12:29 -06:00
filelist.js fix sort sort function of files multiple selection actions 2021-07-26 13:10:25 +00:00
filemultiselectmenu.js Do not rerender the selection menu on show 2020-01-08 16:09:53 +01:00
files.js l10n: Unify spelling 2021-05-20 09:22:07 +02:00
filesummary.js l10n: Replace the apostrophe with double quotation 2021-05-06 14:45:33 +02:00
gotoplugin.js Fix files view change and undefined currentFileList 2021-09-17 19:54:26 +00:00
jquery-visibility.js update jquery-visibility in files app 2015-08-17 09:39:21 +02:00
jquery.fileupload.js Add callback to clean up after misbehaved drag and drop events 2018-06-08 19:15:27 +02:00
keyboardshortcuts.js
mainfileinfodetailview.js Fallback to directory icon based on the mount type 2019-09-15 19:29:57 +02:00
merged-index.json Remove outdated legacy search scripts 2020-08-04 20:56:22 +02:00
navigation.js Add drop zone for favorites quick access in navigation 2019-02-01 01:45:03 +01:00
newfilemenu.js Hide new template directory entry after creating and allow setting existing directories 2021-01-28 12:00:21 +01:00
operationprogressbar.js update tooltip content dynamically 2019-10-23 17:25:27 +02:00
recentfilelist.js Use DOMContentLoaded and fix sharebymail loading issue 2020-07-20 12:42:08 +02:00
recentplugin.js Fix jsdocs build on server repo 2018-10-24 15:41:08 +02:00
semaphore.js Fix public upload by also load the semaphore method 2019-05-07 23:48:06 +02:00
sidebarpreviewmanager.js Always show full previews 2019-03-27 13:29:58 +01:00
sidebarpreviewtext.js Do not fetch the whole text file for the sidebar preview 2017-08-03 20:32:59 +02:00
tagsplugin.js Fix favorite dark icon 2021-02-02 13:48:18 +01:00
templates.js Compile templates 2020-01-21 16:26:05 +01:00
upload.js Improved Javascript docs for JSDoc 2014-10-31 13:43:30 +01:00