Download [hot]ing 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'; import googleDriveApi from './api'; const BulkDownload = () => { const [selectedFiles, setSelectedFiles] = useState([]); const [progress, setProgress] = useState({}); downloading multiple files from google drive

for (const fileId of fileIds) const fileMeta = await drive.files.get( fileId, fields: 'name,mimeType' ); let fileStream; const handleDownload = async () => const response