Skip to content

fix: download button not working in streaming mode#121

Merged
fank merged 1 commit intomainfrom
fix/download-button-streaming
Feb 3, 2026
Merged

fix: download button not working in streaming mode#121
fank merged 1 commit intomainfrom
fix/download-button-streaming

Conversation

@fank
Copy link
Member

@fank fank commented Feb 3, 2026

Summary

  • Fix ReferenceError: fileName is not defined when clicking download button in streaming mode
  • Pass operation filename to processOpStreaming and set the global fileName variable
  • Strip .json extension from filename in both streaming and legacy modes to fix double extension issue (database stores file.json, endpoint adds .json.gz)

Test plan

  • Load an operation in streaming mode (protobuf/flatbuffers)
  • Click the download button
  • Verify the file downloads correctly
  • Test share URL generation still works

The download button threw "ReferenceError: fileName is not defined" when
using streaming mode because processOpStreaming didn't set the global
fileName variable.

Additionally, the filename stored in the database includes ".json"
extension, but the /file/:name endpoint adds ".json.gz", causing double
extension lookups. Now strips ".json" when setting fileName in both
streaming and legacy modes.
@fank fank merged commit c9429f1 into main Feb 3, 2026
2 checks passed
@fank fank deleted the fix/download-button-streaming branch February 3, 2026 21:18
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