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:
parent
51b88c0e2c
commit
3170577ee1
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue