add file attachments to webdav via API
Hiya,
I might be overcomplicating things.
What I want to do is use the API to add a (annotated) pdf file as an attachment to an item... while using webdav as storage.
There seem to be API methods to upload attachments to zotero's storage, but I can't seem to figure out how to add them when using webdav.
I can add the file itself either locally or to the webdav myself, but I need to create the datastructure for zotero to know it exists..and to tell me which key to use.
Is that possible currently? Am I just missing the obvious?
Thanks for your help!
Alex
I might be overcomplicating things.
What I want to do is use the API to add a (annotated) pdf file as an attachment to an item... while using webdav as storage.
There seem to be API methods to upload attachments to zotero's storage, but I can't seem to figure out how to add them when using webdav.
I can add the file itself either locally or to the webdav myself, but I need to create the datastructure for zotero to know it exists..and to tell me which key to use.
Is that possible currently? Am I just missing the obvious?
Thanks for your help!
Alex
Depending on exactly what you're trying to do, it's likely easier to just script the addition of the PDF to Zotero locally (e.g., using Better BibTeX's debug-bridge) and let Zotero handling file syncing itself.
(For development/API questions, it's best to post to zotero-dev. We try to keep technical discussions there.)