-
-
Notifications
You must be signed in to change notification settings - Fork 537
Open
Description
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.
What browsers do you see the problem on?
Chrome
Any additional comments?
No response
Metadata
Metadata
Assignees
Labels
Type: Bug 🐞Something isn't workingSomething isn't working
Type
Projects
Status
🔙 Backlog

