samples icon indicating copy to clipboard operation
samples copied to clipboard

The BinarySubmit sample does not work - missing key JavaScript functions

Open mbuotidem opened this issue 4 years ago • 1 comments

It appears that the Binary Submit sample for Blazor is missing the JavaScript code that would make it work.

When I run it, I get the error :

Error: Microsoft.JSInterop.JSException: Could not find 'getStream' ('getStream' was undefined). Error: Could not find 'getStream' ('getStream' was undefined).

I went ahead to create my own getStream function but then another JavaScript function, 'readBytes', used in the ChunkedStream.cs class (line 51) is missing as well.

Is there a plan to update the BinarySubmit sample?

mbuotidem avatar Dec 13 '20 18:12 mbuotidem

I ran into the same problem, and made an attempt to add a JS file that would actually work with the existing ChunkedStream.cs code. Hope this helps someone in the future!

CK-Yong avatar Jun 05 '21 00:06 CK-Yong