Unfortunately IITCm does not follow that recommendations, and implements own way: adds one more function, which get result requesting //request-file.iitcm.localhost/onFileSelectedXXXX in cumbersome way:
Although that code works (most of the time), but this approach introduces fragmentation: in order to support both mobile and desktop, developer has to:
implement 2 separate routines (completely different)
apply one that fits current environment
Besides, IITCm function is limited:
does not support multiple selection
does not allow file chooser filtering (by file type)
has limitation on file size, as it is transferring in inefficient way
It's common task for iitc plugins - load local file to import some data. And html has element for this - https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file
But to make it work in WebView - additional setup required: https://google.com/search?q=webview+input+file
Unfortunately IITCm does not follow that recommendations, and implements own way: adds one more function, which get result requesting
//request-file.iitcm.localhost/onFileSelectedXXXX
in cumbersome way:Although that code works (most of the time), but this approach introduces fragmentation: in order to support both mobile and desktop, developer has to:
Besides, IITCm function is limited: