Repository navigation
fix(upload): resolve files in serialized callbacks - #7409
Merged
masenf merged 2 commits intoNov 5, 2026
Merged
Conversation
Contributor
[Medium impact] The PR appears safe to merge. SummaryUpload callbacks now read the current selection through shared runtime references instead of a component-local variable.
No actionable issues were found in the changes since the previous review. No previous review threads were supplied. Reviews (2) · Last reviewed commit: "refactor(upload): reuse the provider app..." · Reviewed by Greptile |
Merging this PR will not alter performance1 warning
Comparing |
Take the UploadFilesProvider app wrap from get_upload_files_context_var_data() so its priority is defined in one place. Use the literal upload ID in the direct-upload test, as the upload docs require.
masenf
approved these changes
Nov 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #7244. Uploads triggered by toast actions or
rx.call_scriptcallbacks fail because their generated payload reads a component-localfilesByIdvariable. The callback now reads the current selection through the shared runtime references.What changed
Verification
ReferenceErrorbefore the fix.pyright reflex testspassed.Deployment notes
No configuration changes are required. Callback examples continue to use documented literal upload IDs; general state-variable scope in serialized callbacks is unchanged.