当前,当您按顺序上传具有相同名称的文件时,它们会一个堆叠在另一个之上。我们可以根据元数据属性控制这种版本堆叠吗?
因此,下面这样的序列将创建同一文档的3个版本
filename "test.txt" with metadata attribute "x" - attempt 1 - creates version 1
filename "test.txt" with metadata attribute "x" attempt 2 - creates version 2 of above
filename "test.txt" with metadata attribute "y" attempt 3 - creates version 3 of above
但在我们的案例中,所需的版本控制如下:
filename "test.txt" with metadata attribute "x" - attempt 1 - should create version 1
filename "test.txt" with metadata attribute "x" attempt 2 - should create version 2 of above
filename "test.txt" with metadata attribute "y" attempt 3 - should create version 1 independent of above stack
这是因为我们有一个日期属性(x,y(,它需要控制版本控制,而不是仅仅基于文件名。
我们可以根据元数据属性控制这种版本堆叠吗?
简单的答案是你不能。通过系统提供的blob版本控制,只要更新了blob,就会创建一个新版本。您无法控制版本控制将依赖哪些参数(在您的情况下是元数据(。
如果您希望基于blob以外的某些逻辑进行版本控制,则必须推出自己的解决方案。