Skip to content

Can't upload file on iOS duo to issues with input accept for custom file extension #146

@leocaseiro

Description

@leocaseiro

It's amazing the alphatab works on any device, including iOS, however, duo to a lack of full implementation of the accept from input file in iOS, currently we can't test the player on iOS devices. in iOS, the validation only works for mime types, however, guitarpro files, cap and musicxml files don't have a particular mime type (except for the xml). So we might want to allow any file when loading the website on iOS devices, and have a validation.

Affected Page

Any player that needs upload and uses accept="*.gpx,etc"

https://caniuse.com/input-file-accept

Expected Results

Be able to upload a file on iOS devices, maybe validation via JS, (maybe with https://www.npmjs.com/package/attr-accept or just custom).

Observed Results

We can't select a file on iOS devices because the html tag has an issue on iOS based on the input accept.

Your environment

any iOS device

PS: I am unfamiliar with android, but caniuse doesn't mention any issues.
https://caniuse.com/input-file-accept

Image

Metadata

Metadata

Assignees

Labels

🕷️ bugBroken functionality on the website.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions