-
Notifications
You must be signed in to change notification settings - Fork 25.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The upload stream is closing after the loop. #33272
Comments
😎🏖️🌴 Summertime! 🏐🏄♀️🦩Stand by! A green dinosaur 🦖 (guardrex) will arrive shortly to assist. |
Thanks @rodrigo-lemela-duarte for opening the issue over here. This is the repo where we work issues. That code, which is part of the
I think the scenario that you should focus on for a BWA uploading content to the BWA is in the Server-side file upload example section ... |
Hey, I express my self wrongly and I apoligizy for. When you declare that way and use the Why this happen? I don't know, I didn't got deepper on the issue, just look for the correct code and move on. Thanks. |
I see. Thanks for the clarification. Let me see if I can reproduce that error here. I'll get back to you soon ... hopefully by tomorrow afternoon. |
Strange. Can be something local? |
I don't know ... maybe. The code in the article was approved by the product unit. We'll have to have one of the product unit engineers take a look at this issue. However, they can't look right now. They're too busy putting the final touches on the .NET 9 release for November. I'll contact them around the holidays in late November to take a look. |
@rodrigo-lemela-duarte ... Mackinnon just remarked on this (and similar problems). I'll work on adding a section and/or updating the existing approach. See .... |
[EDIT by guardrex to fix the code block ... @rodrigo-lemela-duarte, it's triple-backticks on a line above and below code in a comment]
[EDIT by guardrex to update the report on the var access that results in the error about the closed stream. The error occurs on
content
access.]Description
At the
FileUpload2.razor
code:This part of the code is throwning error:
After you get out of the loop and try to access
[should befileContent
content
, see comment below], .NET throws an error saying that the stream is closed.The right piece of the code is:
Page URL
https://learn.microsoft.com/en-us/aspnet/core/blazor/file-uploads?view=aspnetcore-8.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/file-uploads.md
Document ID
c11d981c-05af-c19d-a333-feedd5978639
Article author
@guardrex
The text was updated successfully, but these errors were encountered: