How I fixed it:
from an entry with typeof FileEntry
, we can just do .file(callback)
, where the first parameter in the callback is of type File
, which we can then just create an objectURL from:
var reader = entry.createReader();
reader.readEntries(function (res) {
res.forEach(function (entry) {
entry.file(function(file){ //this does the trick
var obj = URL.createObjectURL(file);
}
});
});
Many thanks to dandavis who provided me his javascript code and the approximate line so I could go look for it myself ;)