MAF provides a way to interact with the device's camera or photo gallery. Please take a look a the documentation. You can find it here (search for feature "getPicture"): https://docs.oracle.com/en/middleware/developer-tools/maf/2.6/develop/using-bindings-and-creating-data-controls-maf-amx.html#GUID-B9C1529E-009D-45A5-8F3F-B52732158487
The getPicture function is to take the picture using camera. I would need to add the files/images from the documents/gallery section and attach in the application. Could you please let me know how to get the upload component in MAF. Your help is highly appreciated.
Ok, with getPicture the user can also select images from the gallery, but can't select other file types. You should look at some cordova plugin like cordova-plugin-file-selector ( https://github.com/don/cordova-filechooser). This was the first I found. Surely there are others.