Skip to content

Error not showing when wrong type is uploaded and nothing happens second time #14

Description

@zoinkydoink

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions