Update File Version
When a user adds a new file to a folder, and there is a file in that folder with the same name, then a new file version is created.
-
A new file version uses the same
File-Idof the file with the matching name and sameParent-Folder-Id. -
The file upload process is followed and new File Metadata and Data transactions are created.
-
However a new UUID is not generated and the same
File-Idand associated metadata is used for this new version -
The new File Metadata Transaction points to the new Data transaction.
-
Since the
File-Idremains the same, the File Keys for private files can decrypt all versions of that file. -
For private files, new
Cipher-IVs are generated for this new metadata and data transaction
-
-
ArFS clients can now iterate through the state of this file, since it will have multiple versions using the same
File-Id.