Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

How to use a selected file in javascript function in my Blazor Server App?

$
0
0

In my Blazor Server App the user can select a File from his local drive.Now this file should be analysed locally in Javascript and the results should be send back to Blazor.Calling Javascript functions is not the problem, but I have problems to use the file in Javascript. On the C# part it is a IBrowserFile.

I need to do this because the files are very big, so I need to prevent unecessary uploads. On the javascript side I use Mediainfo.js to analyse the file.

I am new to Blazor Server, but as I understand this, the C# code runns completly on the server, so the solutions I found did not work, because they always do some file conversion in C# and that mees the file has to be uploaded fist.

It would be great to get a solution for this.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>