Raw file data as string, Blob, or Buffer.
Optional
filenameOptional filename for the uploaded file.
Optional
schemaOptional schema ID for data validation.
Optional
permissionsOptional permissions to grant during upload.
Optional
encryptWhether to encrypt the data (defaults to true).
Optional
providerOptional storage provider name.
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