MatBlazor icon indicating copy to clipboard operation
MatBlazor copied to clipboard

MatFileUpload style and behaviour question

Open GioviQ opened this issue 4 years ago • 6 comments

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?

GioviQ avatar Oct 31 '20 12:10 GioviQ

I also have that same question. hopefully we will have an answer from them.

InfoShellTex avatar Nov 09 '20 12:11 InfoShellTex

@GioviQ @InfoShellTex Hello, can you tell me how they solved it. Thanks

yoya93 avatar Jul 06 '21 15:07 yoya93

@yoya93 try https://mudblazor.com/components/fileupload

GioviQ avatar Jul 06 '21 15:07 GioviQ

@GioviQ Thank you so much !! It changed the library

yoya93 avatar Jul 06 '21 15:07 yoya93

@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.

InfoShellTex avatar Jul 07 '21 14:07 InfoShellTex

ohh Thank you so much !! @InfoShellTex

yoya93 avatar Jul 08 '21 00:07 yoya93