Skip to content

[Bug]: FilePicker - Error: System.NotSupportedException: ConstructorContainsNullParameterNames #6033

@drma-tech

Description

@drma-tech

Blazorise Version

last one

What Blazorise provider are you running on?

Bootstrap5

Link to minimal reproduction or a simple code snippet

<FilePicker Changed="OnFileChanged" Filter="image/*" MaxFileSize="MaxFileSize" AutoReset="true" DisableProgressReport="true" />

private async Task OnFileChanged(FileChangedEventArgs e)
{
    try
    {
        foreach (var file in e.Files)
        {
            if (file.Status == FileEntryStatus.Error)
            {
                await Toast.Error(file.ErrorMessage);
            }
            else if (file.Status == FileEntryStatus.ExceedsMaximumSize)
            {
                await Toast.Warning("File size is too large");
            }
            else if (file.Status == FileEntryStatus.Ready)
            {
                var buffer = await GetBuffer(file);
                ShowPicture(file, buffer);
            }
        }
    }
    catch (Exception ex)
    {
        ex.ProcessException(Toast, Logger);
    }
}

Steps to reproduce & bug description

select a file (this error does not happen on localhost, only on the server)

What is expected?

call the method with the file and do what needs to be done.

What is actually happening?

I think the method is not being called. There is an error occurring at the javascript level.

Image

Image

What browsers do you see the problem on?

Chrome

Any additional comments?

No response

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

🔙 Backlog

Relationships

None yet

Development

No branches or pull requests

Issue actions