Download request with object_path (format: sourceName/filename)
Blob containing the binary file data
import { downloadFiles } from "@cpod/sdk";
// Download file and create download link
const blob = await downloadFiles({
object_path: "source-name/document.pdf"
});
// Create download URL in browser
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = 'document.pdf';
a.click();
URL.revokeObjectURL(url);
Download files by path