You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[browser][wasm] Request Streaming upload via http handler #36634
During the initial review of the browser wasm code integration it was brought to the attention that the request content may not be sufficient in its current state.
There needs to be more investigation into whether there is a way to stream the request content. The issue being that not being able to handle this scenario may result in the buffering of huge amounts of data is some scenarios.
These scenarios need to be identified and solution coded if there is a way to achieve this using the browser API.
Initial investigation leads to some sort of wrapping the javascript Streams API and exposing it in some way via .NET stream.
Here is working prototype using ReadableStream request bodies. It currently requires the Experimental Web Platform features feature to be turned on in chrome://flags.
@pavelsavara ... I'm in the process of adding remarks to the Blazor WASM File uploads topic to alert readers to the limitation of the current BrowserHttpHandler implementation for large file uploads.
Pavel, I'll ping you as a reviewer, as I have a question about this issue cross-link in the new text. The PR will be up on Monday, 2/6.
We could possibly implement it and hide it behind option similar to WebAssemblyEnableStreamingResponse we already have. @lewing Do you see this is as Net8 priority ?
Activity
campersau commentedon Jun 26, 2021
Here is working prototype using
ReadableStreamrequest bodies. It currently requires theExperimental Web Platform featuresfeature to be turned on in chrome://flags.guardrex commentedon Feb 4, 2023
@pavelsavara ... I'm in the process of adding remarks to the Blazor WASM File uploads topic to alert readers to the limitation of the current
BrowserHttpHandlerimplementation for large file uploads.Pavel, I'll ping you as a reviewer, as I have a question about this issue cross-link in the new text. The PR will be up on Monday, 2/6.
pavelsavara commentedon Feb 6, 2023
@guardrex streaming HTTP is still not supported by browsers as far as I could tell.
See https://chromestatus.com/feature/5274139738767360
campersau commentedon Feb 6, 2023
It is supported by Chrome / Edge (https://developer.chrome.com/articles/fetch-streaming-requests/) but not by Firefox (mozilla/standards-positions#663) or Safari (WebKit/standards-positions#24)
pavelsavara commentedon Feb 6, 2023
Thanks @campersau!
We could possibly implement it and hide it behind option similar to
WebAssemblyEnableStreamingResponsewe already have.@lewing Do you see this is as Net8 priority ?