Blazor File Upload (Updated)
With the release of .Net 5.0, a new Blazor file upload component was released. I wanted to replace my old file upload component that I published way back in Oct of 2019, post with the new 5.0 one. This post is working with the Blazor Server side, but this will work with Web Assembly except you will need a server API to do the actual file upload. Changes I started by updating my Blazor project to /net 5.0. That part was easy. My next step was to replace the component. As it turned out, my old component was named the same as the new one: <InputFile OnChange="@HandleSelection" /> For the selection handler, I had to make a couple of changes. The changes were 1. Switched the agreement from IFileListEntry to InputfileChangeEventArg 2. The collection of files that were selected changed from FileListEntry to IBrowserFile. Working with IBrowser file object does change the information that we have...