-
What's the purpose of the When I did not provide a value for I noticed this when I used the Download from a stream example in the Blazor docs to allow the user to download their uploaded file as an alternative to providing a preview on the webpage (minimal repo here). When the uploaded file was larger than 10KB, the downloaded file was not a proper file. Obviously, the issue was fixed when I set |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Answered my own question by looking at the code provided in the docs for InputFileMode.Buffer. When the file size is larger than Updated my repo in case it helps someone. Someday I'll do a PR on the docs to explicitly spell out this detail of |
Beta Was this translation helpful? Give feedback.
Answered my own question by looking at the code provided in the docs for InputFileMode.Buffer.
When the file size is larger than
BufferSize
, multiple buffers ofBufferSize
are emitted by theOnProgressChange
callback. By concatenating the data in the buffers, you get all the bytes of the file.Updated my repo in case it helps someone. Someday I'll do a PR on the docs to explicitly spell out this detail of
InputFileMode.Buffer
...