mirror of
https://github.com/nimbusdotstorage/Nimbus
synced 2026-04-22 17:45:03 +02:00
refactor: simplify buffer conversion logic in Google Drive provider and enhance download file schema validation
This commit is contained in:
@@ -195,7 +195,7 @@ export function useDownloadFile() {
|
||||
|
||||
// Track download progress if the response supports it
|
||||
const contentLength = response.headers.get("Content-Length");
|
||||
const total = contentLength ? parseInt(contentLength, 10) : 0;
|
||||
const total = contentLength ? Number.parseInt(contentLength, 10) : 0;
|
||||
let loaded = 0;
|
||||
|
||||
if (response.body && total > 0) {
|
||||
|
||||
Reference in New Issue
Block a user