2

[i am a fresher on pouchdb. i save a file to my local pc by using the demo code:

        var db = new PouchDB('todos');
        var attachment =
        "TGVnZW5kYXJ5IGhlYXJ0cywgdGVhciB1cyBhbGwgYXBhcnQKTWFrZS" +
        "BvdXIgZW1vdGlvbnMgYmxlZWQsIGNyeWluZyBvdXQgaW4gbmVlZA==";
    db.putAttachment('this0058089', '55ee5.txt', attachment, 'text/plain').then(function(result) {
        // handle result
        console.log(result);
    }).catch(function(err) {
        console.log(err);
    });

which folder can we check the file we save? or how can we check it?

this is my project, i found no file i saved. enter image description here this is my storage, it's empty. enter image description here

AdvancingEnemy
  • 382
  • 3
  • 20

1 Answers1

0

pouchDB acts as an adapter to communicate with your browser's native in browser database(it can be IndexedDB, Web SQL etc). In the case of chrome browser the data will get stored within the 'IndexedDB'.

You can go to 'Developer Tools -> Resources -> IndexedDB' to inspect the data stored.

user1455719
  • 1,045
  • 4
  • 15
  • 35