-
Notifications
You must be signed in to change notification settings - Fork 31
[Question][Help] - Downloading Attachments #157
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
Comments
Upon further inspection of the Would it hurt anything if Thanks, Matt |
Hi, sorry the late answer. It seems like a bug, I don't think it hurts at all but it seems strange I missed it. Since you check the code do you mind give it a try and PR it? As I am deep is another feature right now Thanks |
@matteobortolazzo I've cloned the repo from the master branch and created a feature branch locally but I can't get my changes pushed. This is my first PR ever to an open source project so I'm likely doing this incorrectly. |
No worries :) You need to fork on you own account to PR me. |
v3.2.0 Released |
We are using PouchDB and it is being synched/replicated to databases within CouchDB. Our pouch documents have attachments which are in turn being synched to CouchDB.
When trying to download the attachment using
var file = await db.DownloadAttachmentAsync(attachment, Path.GetTempPath(), cancellationToken: cancellationToken);
it is failing because theattachment.Uri
is null. It seems it is null because this document/attachment was not added via the couchdb-net library and thereforeInitAttachments()
was not called which internally sets theUri
property.It's very possible/likely we are doing something incorrectly on the PouchDB side and/or the CouchDB side, but any assistance here would be greatly appreciated.
Thanks!!
The text was updated successfully, but these errors were encountered: