How can i clear the value of input element?
OnChange event has no emitted when I upload a single file again ~!
We are suffering from the same issue. When the same file is uploaded, we get no event. Looking into a fix.
OnChange event has no emitted when I upload a single file again ~!
We only observed this happening when it was the same file that was dropped as the input had not changed as such.
EDIT: THE ISSUE IS NOW FIXED AND THE BELOW WORKAROUND SHOULD NOT BE REQUIRED
Mars Attacks Alien: "HACK! HACK-HACK!"
OK, here's a workaround:
@if (DoubleBuffer)
{
<InputFile OnChange="FileUploaded" />
}
else
{
<InputFile OnChange="FileUploaded" />
}
and, at the end of FileUploaded():
DoubleBuffer = !DoubleBuffer;
Thanks David. Its not ideal, but it works.
Is there already a real solution for this issue?
I tried implementing the proposed workaround, with the effect that now two uploads work, but the third one fails.
I tried implementing the proposed workaround, with the effect that now two uploads work, but the third one fails.
I believe this issue is now fixed and the workaround is no longer required.
The issue is definitely still happening for me on the latest version.