Downloading Files
The code example below shows how to download a file from a Store in PrivMX:
function reportProgress(progress: number){
console.log(progress)
}
await Endpoint.connection().context('CONTEXT_ID').stores.downloadFile({
fileId: 'FILE_ID',
fileName: 'FILE_NAME',
progressCallback: reportProgress
})