Home › Forums › Development › Issue on Android Tablet regarding attachment.
- This topic has 3 replies, 2 voices, and was last updated 7 years, 8 months ago by Jasper Chow.
-
AuthorPosts
-
-
April 18, 2017 at 10:00 am #8341Jayant ShewaleParticipant
I am facing one issue on Android tablet.
Description: We have one form which is used to attach some files/pictures by clicking on the Clip icon, for this we are using attachment control. Control name is “MobileAttachmentPictureUpload.control”.
When we are clicking on that clip icon, expectation is it should open the “File Browser” but it is opening “Camera” instead. The control is implementing “nexj.core.view.flat.mobile.FlatMobileFileInputView” class.
What can be open and not open is not handled in control. So how we can handle and open a “File Browser” instead of “Camera”?
0 -
April 18, 2017 at 10:46 am #8353Jasper ChowParticipant
FlatMobile image upload is using HTML Media capture API. Application developer can specify the desired media type to be captured by specifying fileType. ( Please refer to https://w3c.github.io/html-media-capture/)
Regarding the behavior: Since it is HTML API how it is handled is all up to the browser. For example iOS Safari will provide both camera and file picker options. For Android there are so many manufacturers and versions so behavior varies and little developer can control.
Maybe you can run the examples in this page on your device
And see if any of the sample work on your device?
0 -
April 20, 2017 at 3:32 am #8377Jayant ShewaleParticipant
I already have tried with the things mentioned here but not helping much.
0 -
April 20, 2017 at 9:33 am #8385Jasper ChowParticipant
Hi Jayant,
My understanding of the problem is when you click on the icon it gives you the camera rather than the file picker?We are using standard HTML API, not some native method. As a result the behavior is not something we can control all the time.
MobileAttachmentPictureUpload behavior should be similar to http://jsfiddle.net/4WHw5/1/show/ (sample 2 mentioned in previous post) markup is <input type=”file” accept=”image/*” capture=”camera”>If you run the page on your Android tablet do you also only get Ccmera but no file picker? You can also try the other samples and see if there is any combination gives you want you desire?
0
-
-
AuthorPosts
- You must be logged in to reply to this topic.