aboutsummaryrefslogtreecommitdiff
path: root/src/client/util
diff options
context:
space:
mode:
authorGeireann Lindfield Roberts <60007097+geireann@users.noreply.github.com>2020-10-23 01:59:15 +0800
committerGeireann Lindfield Roberts <60007097+geireann@users.noreply.github.com>2020-10-23 01:59:15 +0800
commitac84d41faf25df288c55aab53a2e5c667ac00bcb (patch)
treefa35929f5706321a2c501acb908ba64551d689bd /src/client/util
parente1d40c330c6981f04c745069d82fe24559af269c (diff)
parent040d65234f52dc3337483acdb2c1c6d0cc8fefa2 (diff)
Merge branch 'master' into presentation_v1
Diffstat (limited to 'src/client/util')
-rw-r--r--src/client/util/CurrentUserUtils.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts
index 38bfe3fb6..07447b93c 100644
--- a/src/client/util/CurrentUserUtils.ts
+++ b/src/client/util/CurrentUserUtils.ts
@@ -1124,6 +1124,9 @@ export class CurrentUserUtils {
const disposer = OverlayView.ShowSpinner();
DocListCastAsync(importDocs.data).then(async list => {
const results = await DocUtils.uploadFilesToDocs(Array.from(input.files || []), {});
+ if (results.length !== input.files?.length) {
+ alert("Error uploading files - possibly due to unsupported file types")
+ }
list?.splice(0, 0, ...results);
disposer();
});