-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
When a file is uploaded that is of the wrong extension, the error message set does not show (assuming it should show).
However what is happening is that an exception is thrown and it is set on the .HasException. Is it expected that we handle this ourselves? if so then is there a point to CustomExtensionMessage.
If i upload the same bad extension file again after the first one fails, the second try doesnt even throw an exception, it just simple does nothing. However if i upload a good file after a bad attempt then everything works as expected.
Here is the code I am using
<FileUpload ResetButtonText="Upload another" OnChange="OnFileUploaded"
PartialGuidLength="10" MaxFileSize="800000"
FilterByExtension="true" AllowedExtensions=".jpg;.png" ShowStatus="true"
CustomExtensionMessage="Wrong extension" AppendPartialGuid="true"
FileTooLargeMessage="file too large"></FileUpload>
I am also using the latest version from nuget
Metadata
Metadata
Assignees
Labels
No labels