Skip to content

ui.upload - how to dynamically change the accept property of the ui.upload component? #4161

Closed Answered by frankvp11
pirx3 asked this question in Q&A
Discussion options

You must be logged in to vote

You can just remove the prop and add a new one, like this: element.props(remove=".md", add=".txt"). Note, I didn't test that code 😅 . Then just refresh the element, using element.update. If you could give a MRE I can probably help you?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@pirx3
Comment options

@falkoschindler
Comment options

Answer selected by pirx3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants