MatBlazor
MatBlazor copied to clipboard
MatFileUpload style and behaviour question
Is it possible to style MatFileUpload so it looks like a MatButton?
OnChange is raised when file name changes. How to allow to upload the same file name again?
I also have that same question. hopefully we will have an answer from them.
@GioviQ @InfoShellTex Hello, can you tell me how they solved it. Thanks
@yoya93 try https://mudblazor.com/components/fileupload
@GioviQ Thank you so much !! It changed the library
@yoya93 I don't think they solved it. But then again, I haven't checked/updated since. As another alternative, I used "Blazorise" (https://blazorise.com/) the free portion, easilly added via NuGet and followed the instruction on their documentation saite/Github. I just used it for their file upload instead. Just a note if you do use Blazorise file upload. When triggered for file uploaded. when using a stream to read the file, make sure to close the stream or the file upload may not trigger again until its closed. For example, I use a MemoryStream to write the file to then used a StreamReader to read the content. I had to close the StreamReader and the MemoryStream afterwards so the FileUpload could trigger again.
ohh Thank you so much !! @InfoShellTex