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.
This commit is contained in:
Bianca Nenciu 2022-02-10 21:48:22 +02:00 committed by GitHub
parent 51b88c0e2c
commit 3170577ee1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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()