When a user adds a new file to a folder, it's first version is created.
A new file metadata transaction and a separate data transaction are created when a user wants to create a new file.
Files can only be created in existing drives, and must have a valid
Drive-Id
Files can only be created in existing parent folders, and must have a valid
Parent-Folder-Id
The new File Entity Data transaction must only specify the file’s mime type aka
Content-Type
The new file metadata transaction must generate a new UUIDv4 for the
File-Id
File metadata transactions must have
Entity-Type: "file"
The client gets the user’s local time for the
Unix-Time
tag, represented as Seconds Since Unix Epoch.The client populates the File Entity Metadata Transaction Data JSON after creating the data transaction.
name
The name of the file including extensionsize
The size of the file on disk, in bytes as an integerlastModifiedDate
The file’s last time of modification as reported by the user’s operating system, in milliseconds since Unix epochdataTxId
The Arweave transaction id of this File Entity’s Data TransactiondataContentType
The mime time of this File Entity’s data must be determined by the client
If the File is private
Its
Cipher
tag must be filled out with the respective encryption algorithm (currentlyAES256-GCM
) for both the Metadata and Data transactions.Its
Cipher-IV
tag must be filled out with the generated Initialization Vector for both the Metadata and Data transactions. Each one has its own unique IV.It must have the following content type
Content-Type: "application/octet-stream"
for both the Metadata and Data transactionsThe ArFS client must encrypt the File Entity’s Data and Metadata JSON using their assigned
Cipher
andCipher-IV
Community Tips (AR wallet to wallet transactions) should be added to data uploads, to increase chances of mining and avoid separate transaction fees.
Comments
0 comments
Please sign in to leave a comment.