knownasilya / ember-plupload

Ember component for handling uploads using plupload
MIT License
87 stars 53 forks source link

Will only open camera on mobile safari #125

Open justinboohan opened 7 years ago

justinboohan commented 7 years ago

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 commented 6 years ago

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

tim-evans commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

Sweet, thanks a bunch 👍

trampos commented 5 years ago

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.