Chunks: add error handling for chunks having content or not existing.
If the chunk already has a content and we try to upload it again, we assume the previous content was correct and this one is the same (chunks are immutable). We can't actually ensure they are the same due to the encryption, though they should be. If a chunk is being uploaded for the first time and doesn't have a content, throw a validation error rather than throwing an ugly error.master
parent
fae15fe420
commit
9a518b3907
Loading…
Reference in New Issue