You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/04/01 03:34:21 UTC

[GitHub] [cordova-android] gabriele-sacchi commented on issue #695: Missing Intent type and category prevent file upload - [solution included]

gabriele-sacchi commented on issue #695: Missing Intent type and category prevent file upload - [solution included]
URL: https://github.com/apache/cordova-android/issues/695#issuecomment-478423824
 
 
   I opened this stackoverflow: https://stackoverflow.com/questions/55447711/convert-mime-types-in-filechooserparams-to-the-right-format-for-intent-settype
   
   It seems like the intent category and intent type are already set because they are extracted from WebChromeClient.FileChooserParams object when the intent is created. I suspect though that the mime types are set incorrectly. This is the error in the terminal:
   `No activity found to handle file chooser intent.: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.GET_CONTENT cat=[android.intent.category.OPENABLE] typ=.jpg,.png,.tiff,.jpeg,.tif,.pdf }`.
   
   If I use `intent.setType("image/* application/pdf");` everything works fine but I'm not sure whether hardcoding these values in this repo would be a good solution. At the same time I believe that this cannot be changed in ng-file-upload either (and I dont seem to find these values in their repo).
   
   Thoughts?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org