shareFile()
Syntax
shareFile(
toPublicKey: string,
chosenId: string,
fileType: UploadType
)Parameters
Name
Type
Required
Description
const FILE_TYPE = ["UNENCRYPTED", "ENCRYPT"];Example
import { shareFile } from "@eueno/lib-browser";
const handleShareFile = async () => {
let toPublicKey = "04f0fa76...b9ebc5b6";
let chosenId = "224";
let fileType = "ENCRYPT";
try {
const res = await shareFile(toPublicKey, chosenId, fileType);
console.log(res);
} catch (error) {
console.log(error);
}
};Last updated