Skip to content

Add file size display before download#7

Open
dannyd40 wants to merge 1 commit intoromandev-codex:mainfrom
dannyd40:feature/display-file-size
Open

Add file size display before download#7
dannyd40 wants to merge 1 commit intoromandev-codex:mainfrom
dannyd40:feature/display-file-size

Conversation

@dannyd40
Copy link
Copy Markdown

Summary

  • New backend endpoint POST /server_download/filesize that fetches file size via HEAD request (with GET Range fallback)
  • Display file size next to the download button in both manual download section and model cards
  • Debounced fetching (500ms) when typing a URL, auto-fetched for models that already have a URL

Test plan

  • Enter a download URL in manual download — file size should appear (e.g. "6.46 GB")
  • Refresh models with URLs pre-filled — sizes should load automatically
  • Enter an invalid URL — size should remain empty (no error shown)
  • Verify no UI lag while typing URLs (debounce working)

🤖 Generated with Claude Code

Show file size next to the download button by fetching it via HEAD
request when a URL is entered. Displayed in both manual download
section and model cards list, with debounced fetching and fallback
to GET Range header when HEAD fails.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant