davros icon indicating copy to clipboard operation
davros copied to clipboard

upload files from mobile

Open JamborJan opened this issue 9 years ago • 7 comments

When using davros on a mobile phone via web you can see the upload button but nothing happens when you tap it.

image1

Tested with iOS 9.2 on an iPhone 6S

Current behavior: nothing happens

Expected behavior: dialogue asking for access to pictures on the phone. possibility to upload one or more pictures.

I'm not sure if that works and you can get access to the files with the mobile safari browser.

JamborJan avatar Jan 26 '16 06:01 JamborJan

Last time I checked it didn't work on desktops either. :P Though it might have been fixed.

ocdtrekkie avatar Jan 26 '16 07:01 ocdtrekkie

I have been using it on desktop and it worked (not in IE, there I get a 404 when clicking on the files section).

JamborJan avatar Jan 26 '16 07:01 JamborJan

Ah, I think I've been able to track this one down. We create a dummy <input id=file type=file> on the page and when you tap the upload menu item, it essentially calls $('file').trigger('click'). Desktop clients allow this, but iOS doesn't.

So it probably involves actually rendering the transparent <input> on top of the 'upload' item. I'm thinking maybe it warrants some UX changes to make it work well. It may take a little while.

mnutt avatar Mar 02 '16 00:03 mnutt

This is less an issue for me since mobile clients are working now.

JamborJan avatar Mar 03 '16 04:03 JamborJan

This seems to be an issue on chrome/linux as well, so will probably get fixed sooner rather than later.

mnutt avatar Mar 06 '16 02:03 mnutt

Upload works on Firefox and Chrome on Android 8. Upload does not work on Safari on iOS 11.

troyjfarrell avatar Jan 04 '18 06:01 troyjfarrell

Actually, I was wrong. It does not work on the mobile browsers at all. It seems that the menu item has a bug in the event handling, likely in ember-paper. This bug occurs only in mobile mode, so it seems that that mobile browsers aren't responding properly to the event, but it can be reproduced on Chrome simply by resizing the window.

I will continue to investigate.

troyjfarrell avatar Jan 04 '18 17:01 troyjfarrell