From 3170577ee1040a09ffd5287ea1ed43dff045767a Mon Sep 17 00:00:00 2001 From: Bianca Nenciu Date: Thu, 10 Feb 2022 21:48:22 +0200 Subject: [PATCH] FIX: Defer upload extension check for iOS (#15890) accept HTML attribute is not fully supported on iOS yet and can contain only MIME types. This changes the input to allow all files and the extension check is performed later in JavaScript. --- .../javascripts/discourse/app/components/composer-editor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/components/composer-editor.js b/app/assets/javascripts/discourse/app/components/composer-editor.js index 9c47b576773..eed18fe3b1a 100644 --- a/app/assets/javascripts/discourse/app/components/composer-editor.js +++ b/app/assets/javascripts/discourse/app/components/composer-editor.js @@ -200,7 +200,10 @@ export default Component.extend(ComposerUploadUppy, { @discourseComputed() acceptsAllFormats() { - return authorizesAllExtensions(this.currentUser.staff, this.siteSettings); + return ( + this.capabilities.isIOS || + authorizesAllExtensions(this.currentUser.staff, this.siteSettings) + ); }, @discourseComputed()