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

Will only open camera on mobile safari #125

Open
justinboohan opened this issue Oct 10, 2017 · 5 comments
Open

Will only open camera on mobile safari #125

justinboohan opened this issue Oct 10, 2017 · 5 comments

Comments

@justinboohan
Copy link

I can only test this with iPhone 6 but it will only trigger opening the camera when I try to upload.

This issue in plupload, http://www.plupload.com/punbb/viewtopic.php?id=4245
suggests that it might be related to the multiple setting.

I've tried this both ways (multiple true and false) and it will still only open the camera.
This is a major issue for me with an otherwise excellent library.

Has anybody else come across this?

@justinboohan
Copy link
Author

Any help on this? Confirmed same problem on ipad...
Could really do with some help on this!

@tim-evans
Copy link
Collaborator

Hey, @jeanleonino do you think you could help @justinboohan on this?

If not, I'd steer you towards ember-file-upload- that is being more actively maintained at the moment 👍

@justinboohan
Copy link
Author

Thanks @tim-evans,
Actually I've just finished some testing with ember-file-upload. It looks like it'll work for me. Looks like it'll be quite straightforward to switch over too. So no need to fix this on my behalf.
Cheers,
Justin

@tim-evans
Copy link
Collaborator

Sweet, thanks a bunch 👍

@trampos
Copy link

trampos commented May 20, 2019

What i did, i set the property onInitOfUploader='setupUploader' on the component, then i wrote the action:

setupUploader(pluploader){
    pluploader.bind('PostInit', () => {
        let $el = Ember.$(pluploader.settings.container).find("input[type=file]");
        if($el) $el.removeAttr('capture');
    });
}

this project uses version 1 of ember, so the code changes a little if using a newer version.

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

No branches or pull requests

3 participants