Skip to content

Comments

feat: add ISO direct download from URL to JetKVM storage#1003

Open
nitishagar wants to merge 2 commits intojetkvm:devfrom
nitishagar:fix-727
Open

feat: add ISO direct download from URL to JetKVM storage#1003
nitishagar wants to merge 2 commits intojetkvm:devfrom
nitishagar:fix-727

Conversation

@nitishagar
Copy link
Contributor

Add feature to download ISO/IMG files directly to JetKVM storage from a URL. This addresses the use case where remote deployments have slow upload speeds, making direct URL downloads significantly faster.

Backend changes:

  • Add DownloadState struct for tracking download progress
  • Add rpcDownloadFromUrl, rpcGetDownloadState, rpcCancelDownload RPCs
  • Implement streaming download with 32KB buffer and progress tracking
  • Broadcast download state events to connected clients

Frontend changes:

  • Add DownloadFileView component with URL input and progress display
  • Add "Download from URL" button in Device Storage view
  • Auto-extract filename from URL for .iso/.img files
  • Poll-based progress updates with speed calculation
  • Support for download cancellation

Fixes #727

Add feature to download ISO/IMG files directly to JetKVM storage from a
URL. This addresses the use case where remote deployments have slow
upload speeds, making direct URL downloads significantly faster.

Backend changes:
- Add DownloadState struct for tracking download progress
- Add rpcDownloadFromUrl, rpcGetDownloadState, rpcCancelDownload RPCs
- Implement streaming download with 32KB buffer and progress tracking
- Broadcast download state events to connected clients

Frontend changes:
- Add DownloadFileView component with URL input and progress display
- Add "Download from URL" button in Device Storage view
- Auto-extract filename from URL for .iso/.img files
- Poll-based progress updates with speed calculation
- Support for download cancellation

Fixes jetkvm#727
@nitishagar
Copy link
Contributor Author

@adamshiervani / @IDisposable folks, can you take a look at this change and provide feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ISO direct Download on JetKVM

2 participants