Skip to content

file is not being saved. #52

@carper7

Description

@carper7

Hi,

I am using your plugin on chrome in android tablet but when I run the code it does not create the file.
This is my code:

window.webkitRequestFileSystem(PERSISTENT, 1024 * 1024, function(fs) {
console.log('Opened ' + fs.name);

fs.root.getFile('NewFile.txt', {create: true}, function(fileEntry) {
fileEntry.createWriter(function(fileWriter) {
fileWriter.onwritestart = function() {
console.log('WRITE START');

  };
  
  fileWriter.onwriteend = function() {
    console.log('WRITE END');
  };

  var blob = new Blob(['1234567890'], {type: 'text/plain'});
      
  fileWriter.write(blob);
}, onError);

}, onError);
}, onError);

function onError(e) {
console.log('Error', e);
}

No errors are reported and to me is an indication nothing is wrong but still it does not do anything.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions