Home > Back-end >  Blazorise - FileEdit no display file name when upload
Blazorise - FileEdit no display file name when upload

Time:12-28

Im new on blazor, and i Started using blazorise, the problem it's that when i upload a file it validate it properly but they did not display the file name on the label, here is the code:

<FileEdit Placeholder="Insert File" Changed="@LoadFile" Progressed="@OnProgressed" BrowseButtonLocalizer="@((name, arguments)=> "Select File")">
   <Feedback>
       <ValidationError>Please Upload a File</ValidationError>
       <ValidationSuccess>File Uploaded</ValidationSuccess>
   </Feedback>
</FileEdit>

CodePudding user response:

You need to Disable AutoReset Because you are using FileChangedEventArgs on the Changed="@LoadFile"

The Code should Look Like This:

<FileEdit Placeholder="Insert File" AutoReset="false" Changed="@LoadFile" Progressed="@OnProgressed" BrowseButtonLocalizer="@((name, arguments)=> "Select File")">
  • Related