File Storage
This module allows you to store/retrieve files that are automatically encrypted.
Encrypt File
This allows you to encrypt files and upload them to the cloud.
If sg
was instantiated with selfguard-client
then file
will be a javascript web File object.
If sg
was instantiated with selfguard-node
then file
will be the file_path of the file.
callback function that will be called with two paramaters err
and value
where value
will equal the progress of the file upload & encryption.
Decrypt File
This allows you to decrypt a file that was uploaded with SelfGuard.
The id of the file that was encrypted.
callback function that will be called with two paramaters err
and value
where value
will equal the progress of the file download & decryption.
Get Files
This allows you to get the file names and ids of the uploaded files