Closed verdie-g closed 2 weeks ago
Indeed, this OnFileError
attribute is not yet implemented and usable in the component.
However, you can obtain this "size too large" information in the ErrorMessage
property of transferred files. In the example on the demo page:
<li>
<b>@file.Name</b>
@($"{Decimal.Divide(file.Size, 1024):N} KB")
@file.ContentType
@file.LocalFile?.FullName
@file.ErrorMessage <!-- This property will contain "The maximum size allowed is reached" -->
</li>
I would like to display an error when a file greater than
MaximumFileSize
is fed to anInputFile
. I believe that would be the role ofOnFileError
but its comment mentionswhich I suppose means it is not available yet. Could you consider implementing it 🙏