Skip to content

replace phonon dispersion downlaod with direct html links#579

Open
joehart2001 wants to merge 1 commit into
mainfrom
phonon-download-fix
Open

replace phonon dispersion downlaod with direct html links#579
joehart2001 wants to merge 1 commit into
mainfrom
phonon-download-fix

Conversation

@joehart2001
Copy link
Copy Markdown
Collaborator

Pre-review checklist for PR author

PR author must check the checkboxes below when creating the PR.

Summary

Phonon dispersion plot downloads failed with HTTP 413 (request too large) for models with complex structures. The download button worked by sending the full pre-rendered PNG, SVG, and JSON back to the server on every click -> for large structures this exceeded the server's request size limit. Fixed by replacing the server callback with direct browser download links, and updated the generic image download callback to run in the browser rather than making a server round-trip.

Linked issue

Resolves #

Testing

@joehart2001 joehart2001 requested a review from ElliottKasoar May 29, 2026 16:53
@ElliottKasoar ElliottKasoar added the bug Something isn't working label May 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants