Home Forums Development Issue on Android Tablet regarding attachment.

Viewing 3 reply threads
  • Author
    Posts
    • #8341
      Jayant ShewaleJayant Shewale
      Participant

      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
    • #8353
      Jasper ChowJasper Chow
      Participant

      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

      http://stackoverflow.com/questions/21523544/html-file-input-control-with-capture-and-accept-attributes-works-wrong

      And see if any of the sample work on your device?

      0
    • #8377
      Jayant ShewaleJayant Shewale
      Participant

      I already have tried with the things mentioned here but not helping much.

      0
    • #8385
      Jasper ChowJasper Chow
      Participant

      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
Viewing 3 reply threads
  • You must be logged in to reply to this topic.