daleharvey/pouchdb — pull request #118 by chendricks (2012-09-20 18:24:54+00:00)
Title: In the IDB adapter, store attachments using the File API, but only if the browser supports the File API

Using IDB for storing large attachments has been shown to slow IndexedDB to the point where it's too slow to use. Until that is fixed, we need a way to store large attachments and still have a performance system.

One alternative is to use the File API, which is currently implemented only on Chrome. This branch of PouchDB provides support for that. It detects whether or not the browser implements the File API and if so, uses it to store attachments, if not uses the IndexedDB object store.