Skip to content

FileUpload JavaScript Call Exception #8882

Answered by ScarletKuro
yangf85 asked this question in Q&A
Discussion options

You must be logged in to vote

I wasn't asking for the whole project, just minimal reproduction. But since you found the root problem there is no need to.
It's a know limitation of InputFile (MudFileUpload is using it internally). Since you have it in popover when it's closed the DOM that contains the file upload is gone and you get this exception.
I cannot answer why it's working for first time, our MudFileUpload is just a wrapper for Microsoft's InputFile and if you replace with it you will get same problem, you can create an issue in the aspnetcore repository.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@yangf85
Comment options

@ScarletKuro
Comment options

Answer selected by yangf85
@yangf85
Comment options

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