Open justinboohan opened 7 years ago
Any help on this? Confirmed same problem on ipad... Could really do with some help on this!
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 👍
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
Sweet, thanks a bunch 👍
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.
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?