As shown in this screenshot --
-- it looks as though, with the new setup, pictures will work as expected in a Thalified version of PPNet. The app posts the photo as an attachment to PouchDB, and PouchDB syncs to the TDH. When I
inspect the TDH, the attachment looks like it got there OK.
We are not getting sync back from the TDH to another PPNet client's PouchDB but when we sort that out I think photos will just. A photo posted by client A's PPNet (and assuming A is the nominated hub) will take this path:
- posted as attachment in A's local Pouch
- synced to attachment in A's TDH
- synced from A's TDH to B's local Pouch
At which point B's PPnet will call PouchDB.getAttachment and receive a blob as expected.
Since the blob will not contain binary data, but rather base64-encoded text (PPNet uses the readAsDataURL method on an uploaded file), we should separately test with pure binary data. But first things first, need to find out why the TDH is not syncing back