uppy/private/dev
Mikael Finstad 3dd1e5e68c
@uppy/provider-views: fix race condition when adding folders (#4384)
* fix race condtion when adding files

don't call addFolder from listAllFiles
because that would call addFile before all folders were loaded

also remove unused selectedFolders state

* fix also the case of adding multiple folders

* fix todo: remove SharedHandler

* remove loaderWrapper

* fix logic

* fix the last race condition

* fix broken duplicate file check

* fix logic

* prettiyfy loop

* add user feedback

so they know that something is happening

* run corepack yarn run build:locale-pack

* Revert "run corepack yarn run build:locale-pack"

This reverts commit 85548ce2fc.

* Revert "add user feedback"

This reverts commit 4060019c35.

* use async generator instead of p-map

* re-fix race-condition

* remove providerFileToId

as suggested by @arturi

* use addFiles instead of addFile

* rename function

* use provider-supplied file ID

instead of generating an ID, for providers that we whitelsit
this allows adding the same time many times (with a different path)

* call core directly

* improve dev dashboard

* disable experimental getAsFileSystemHandle

it seems to be causing problems when dropping folders with subfolders in newest chrome
e.g a folder with 50 files and a subfolder which in turn has another 50 files

also refactor and document the code more

* Update packages/@uppy/provider-views/src/ProviderView/ProviderView.jsx

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>

* mov eto utils

---------

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2023-04-04 12:13:39 +09:00
..
Dashboard.js @uppy/provider-views: fix race condition when adding folders (#4384) 2023-04-04 12:13:39 +09:00
dragdrop.html meta: move dev workspace to private/ (#3368) 2021-12-14 12:53:34 +01:00
DragDrop.js dev: sign requests sent to Transloadit (#3517) 2022-04-21 16:08:28 +02:00
generateSignatureIfSecret.js dev: fix return type of generateSignatureIfSecret (#3793) 2022-05-30 14:44:06 +02:00
index.html meta: move dev workspace to private/ (#3368) 2021-12-14 12:53:34 +01:00
index.js meta: fix linter warnings (#3753) 2022-05-19 11:57:14 +02:00
package.json @uppy/companion: add connection keep-alive to dropbox (#4365) 2023-03-20 20:59:03 +08:00
sw.js meta: fix linter warnings (#3753) 2022-05-19 11:57:14 +02:00
vite.config.js @uppy/transloadit: remove IE 10 hack (#3777) 2022-05-30 18:32:53 +02:00