to restate the title, CouchDB requires PUT for adding an attachment to document, but AppMobi.file.uploadToServer() does a POST. CouchDB returns:
{"error":"method_not_allowed","reason":"Only DELETE,GET,HEAD,PUT allowed"}
I have verified that this is how CouchDB expects it. I was using uploadToServer to attach an image to a document. All the CouchDB documents are so-called JSON documents, so any images have to be attachments to an existing document. I wiresharked the communications and read about uploadToServer and it's definitely doing a POST. Is there any way I can modify this to a PUT?
Thanks.