feat: implement media download functionality and enhance case handling in reports

This commit is contained in:
2026-09-21 02:20:10 +03:30
parent 4ce663c669
commit 51b13631a3
16 changed files with 334 additions and 164 deletions
+11
View File
@@ -11,3 +11,14 @@ export const formatFileSize = (bytes) => {
return `${formattedSize} ${sizes[i]}`
}
export const downloadFiles = (files) => {
files.forEach((file) => {
const link = document.createElement('a')
link.href = file.url
link.download = file.filename || ''
document.body.appendChild(link)
link.click()
link.remove()
})
}