| commit | cf5260e5703827353dc877867d33a5deaa8df2bf | [log] [tgz] |
|---|---|---|
| author | Nolan Lawson <nolan.lawson@gmail.com> | Thu Oct 16 14:25:38 2014 -0400 |
| committer | Nolan Lawson <nolan.lawson@gmail.com> | Thu Oct 16 16:45:47 2014 -0400 |
| tree | 4e01b1cdedd67d8d0b8752172c3c429ab5d5bc5f | |
| parent | d5e09d966898a088a29369d8379c92cd4dcf8a8a [diff] |
(#2880) - fix base64-encoded attachments in http.js The http adapter is not correctly handling base64-encoded strings in putAttachment(). Instead of correctly recognizing the text as base64, it actually just stores it as-is. This also adds a test to ensure that we throw an error if the user supplies a string that is not base64-encoded.
PouchDB was written to help web developers build applications that work as well offline as well as they do online, applications save data locally so the user can use all the features of an app even while offline and synchronise the data between clients so they have up to date data wherever they go.
PouchDB is a free open source project, written in Javascript by these wonderful contributors and inspired by Apache CouchDB.
To get started using PouchDB check out our Documentation and the API Documentation.
If you want to get involved then check out the contributing guide
var db = new PouchDB('dbname'); db.put({ _id: 'dave@gmail.com', name: 'David', age: 66 }); db.changes().on('change', function() { console.log('Ch-Ch-Changes'); }); db.replicate.to('http://example.com/mydb');