Raw file data as string, Blob, or Buffer.
OptionalfilenameOptional filename for the uploaded file.
OptionalschemaOptional schema ID for data validation.
OptionalpermissionsOptional file permissions to grant decryption access during upload.
OptionalencryptWhether to encrypt the data (defaults to true).
OptionalproviderOptional storage provider name.
OptionalownerOptional owner address (defaults to current wallet address).
OptionalschemaSchema validation mode when schemaId is provided:
High-level parameters for uploading user data with automatic encryption and blockchain registration.
Remarks
This is the primary interface for uploading user data through the simplified
vana.data.upload()method. It handles the complete workflow including encryption, storage, and blockchain registration.When using permissions with encryption enabled (default), you must provide the public key for each permission recipient.
Example