You are reading a single comment by @JumJum and its replies. Click here to read the full conversation.
  • This needs to be fixed in file.js.
    Filewriter used there does not change size of existing file.

    1. //writer.write(new Blob([convertToOS(data)], { type: "text/plain" })); old code
    2. var bb = new Blob([convertToOS(data)],{ type: "text/plain"} ));
    3. writer.truncate(bb.size);
    4. setTimeout(function(evt){ //make sure, truncate is done before writing
    5. fileWriter.seek(0); //needed only in special cases
    6. fileWriter.write(bb);
    7. },200);
About

Avatar for JumJum @JumJum started