Blazor InputFile RequestImageFileAsync not revoking ObjectURL #35156
Labels
Projects
Milestone
Comments
|
I'm willing to submit a PR for this issue as my first-time contribution, as it's a 1 line fix. |
Thanks @MichelJansson! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Describe the bug
When invoking
IBrowserFile.RequestImageFileAsync, a file/blob object URL is created for the resize operation:aspnetcore/src/Components/Web.JS/src/InputFile.ts
Line 62 in 1795d69
But this objectURL is never revoked (with
URL.revokeObjectURL()) after the resize has completed, leading to the objectURL and consequently the blob (original image file reference in this case) not being released from memory until the tab is reloaded or closed.createObjectURL Usage Notes (Mozilla)
To Reproduce
Further technical details
The text was updated successfully, but these errors were encountered: