Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file is not being saved. #52

Open
carper7 opened this issue Feb 11, 2021 · 0 comments
Open

file is not being saved. #52

carper7 opened this issue Feb 11, 2021 · 0 comments

Comments

@carper7
Copy link

carper7 commented Feb 11, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant