couchdb:更新带有附件的文档的元数据?

发布于 2024-12-20 23:00:15 字数 79 浏览 5 评论 0原文

如果我有一个包含一些元数据字段和一个 10MB 附件的 CouchDB 文档,是否有办法更新文档并保持附件不变,而无需重新传输 10MB 附件?

If I have a CouchDB document with a handful of metadata fields and a 10MB attachment, is there a way to update the document and leave the attachment identical, w/o having to re-transmit the 10MB attachment?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

戏蝶舞 2024-12-27 23:00:15

它按预期工作,发送新文档(带有 _attachments 存根和最新的 _rev)并且它应该工作。

除非元数据指的是附件存根的 content_type 字段,否则在这种情况下这是不可能的。

It works as intended, send new document (with _attachments stubs and latest _rev) and it sholud work.

Unless, by metadata you mean content_type field of attachment stub, in that case it is not possible.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文