From f3f470ffc18e90b2aa1b38bfd4c8cabc7d71be14 Mon Sep 17 00:00:00 2001 From: Will Scullin Date: Mon, 13 Jun 2022 19:58:21 -0700 Subject: [PATCH] Fix iOS Safari iCloud --- js/components/FileChooser.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/components/FileChooser.tsx b/js/components/FileChooser.tsx index 3d40724..e9d303c 100644 --- a/js/components/FileChooser.tsx +++ b/js/components/FileChooser.tsx @@ -60,10 +60,13 @@ const InputFileChooser = ({ // // which allows pretty generous interpretations. // + // Update(whscullin) - Adding the MIME type seems to block loading anything + // from iCloud when using Safari, so reverting to simply using extensions for + // now. const newAccept = []; for (const type of accept) { - for (const [typeString, suffixes] of Object.entries(type.accept)) { - newAccept.push(typeString); + for (const [/* typeString */, suffixes] of Object.entries(type.accept)) { + // newAccept.push(typeString); if (Array.isArray(suffixes)) { newAccept.push(...suffixes); } else {