Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to limit the menu item in iOS safari #1529

Open
jerryluo opened this issue Nov 11, 2017 · 3 comments
Open

How to limit the menu item in iOS safari #1529

jerryluo opened this issue Nov 11, 2017 · 3 comments

Comments

@jerryluo
Copy link

jerryluo commented Nov 11, 2017

Hello, I have a problem of filters on iOS 11 safari.
plupload version: 2.3.6
iOS version: 11.1

When I set the filter like the following:
filters: {
mime_types : 'image/*'
},

plupload will generate html mark up like
<input id="html5_xxxxxxxxxxxx" type="file" style="font-size: 999px; opacity: 0; position: absolute; top: 0px; left: 0px; width: 100%; height: 100%;" accept=".bmp,.gif,.jpg,.jpeg,.jpe,.psd,.png,.svg,.svgz,.tiff,.tif" tabindex="-1">

but iOS11 safari will ignore the ACCPET attribute and pop up a menu which can also select VIDEO.

If I set the accept="image/*" manually by jQuery in Init event , the menu will show photo option only (which is what I need) but plupload not working instead.

How can I do?

@jayarjo
Copy link
Contributor

jayarjo commented Nov 13, 2017

@jerryluo wow, that's the bug I guess. So Safari in iOS 11 still doesnt' support extensions in accept attribute? How lame...

@jayarjo
Copy link
Contributor

jayarjo commented Nov 13, 2017

Here is the commit with the fix: moxiecode/moxie@0aeef78. You could patch it yourself in the source.

Fix will be incorporated into the next bug release.

@jerryluo
Copy link
Author

Thank you so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants