feat(backend gallery): display download progress

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto 2025-06-18 22:32:31 +02:00
parent 9bcf4c56f1
commit 5eec573722
4 changed files with 61 additions and 7 deletions

View file

@ -256,7 +256,7 @@ func (uri URI) DownloadFile(filePath, sha string, fileN, total int, downloadStat
return fmt.Errorf("failed to get image %q: %v", url, err)
}
return oci.ExtractOCIImage(img, filepath.Dir(filePath))
return oci.ExtractOCIImage(img, filepath.Dir(filePath), downloadStatus)
}
// Check if the file already exists