javascriptcordovaibm-mobilefirstworklight-studio

MobileFirst Cordova Upgrade


I was using mobile first 6.2 and currently updated to 7.1.

And a file upload .js is not working after update. It was originally load by a iframe, but now the "choose file" button is not working. I guess it's about the cordova library.

However i researched the cordova library will auto update after the upgrade of mobilefirst. Or it's the problem from the cordova.js that i imported?

<script type="text/javascript" charset="utf-8" src="./js/cordova-android-2.3.0.js">  
......
<td id="tdChooseExistADiv" class="tdL" align="center" id="chooseExistADivTd">
    <div id="chooseExistADiv" style="margin: 0;padding: 0;left: 0;top: 0;display: block;"><img id="chooseExistAImg" src="./images/text-button/btn_choosexisting.jpg" alt="" /></div>
    <input id="uploadInput" name="selectFileInput" type="file" style="z-index: 999;font-size:27px;filter:alpha(opacity=0);opacity:0;" ></input>
</td>

Solution

  • You cannot manually upgrade the bundled Cordova in MobileFirst Platform 7.1.

    Your options are:

    1. Open a PMR with your exact problem and a full reproduction so the team could look at it and patch the bundled Cordova
    2. Move to MobileFirst Foundation 8.0 where you can use any version of Cordova (MobileFirst SDK is a Cordova plug-in in this release)