Downloading Multiple Files From Google Drive ((hot)) Now

res.attachment('download.zip'); archive.pipe(res);

import useState from 'react'; import googleDriveApi from './api'; const BulkDownload = () => { const [selectedFiles, setSelectedFiles] = useState([]); const [progress, setProgress] = useState({}); downloading multiple files from google drive

const handleDownload = async () => const response = await googleDriveApi.downloadMultiple(selectedFiles.map(f => f.id)); const blob = await response.blob(); const url = window.URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = 'drive_download.zip'; a.click(); ; import useState from 'react'