We are developing mobile application through IBM Worklight. Our current worklight server version is 6.2.0.01 and cordova version is 3.4.
We are facing issue with below code.
<input type='file' accept='image/*' onchange='openFile(event)'><br>
<img id='output'>
<script>
var openFile = function(event) {
var input = event.target;
var reader = new FileReader();
reader.onload = function(){
var dataURL = reader.result;
var output = document.getElementById('output');
output.src = dataURL;
};
reader.readAsDataURL(input.files[0]);
};
</script>
Worklight server 6.3 and cordova 3.6.3 - Working fine.
Worklight server 6.2.0.01 and cordova 3.4 - Not Working (giving error message: "A requested file or directory could not be found at the time an operation was processed." name: "NotFoundError")
由于这似乎是Cordova的问题,所以解决此问题的唯一方法是打开PMR(支持凭单),要求IBM调查并将修复从Cordova 3.6移植回由Worklight 6.2使用的Cordova 3.4。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.