MatBlazor icon indicating copy to clipboard operation
MatBlazor copied to clipboard

MatFileUpload without the need for MemorySteam

Open ghost opened this issue 4 years ago • 1 comments

Describe the feature request Currently when we want to use the MatFileUpload Component and get the content of the file in order to upload it to a server do do something else with it, we need to write it to a MemoryStream. Besides Problem with filesizes bigger than 50 MB (see https://github.com/SamProf/MatBlazor/issues/879), using MemoryStreams is discouraged from Microsoft (https://docs.microsoft.com/de-de/aspnet/core/blazor/file-uploads?view=aspnetcore-5.0).

Expected behavior Read the file content with something else like StreamReader.

ghost avatar Apr 08 '21 12:04 ghost

@mdeeken ,

Thanks for the report! Would you mind opening a PR for this issue?

Christian-Oleson avatar May 05 '21 09:05 Christian-Oleson