Skip to content
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

How to increase the file uploading size in Blazor server side hosted application? #12203

Closed
BerlyChristopher opened this issue Jul 15, 2019 · 2 comments
Labels
area-blazor Includes: Blazor, Razor Components question
Milestone

Comments

@BerlyChristopher
Copy link

In ASP.NET Core, we can increase the uploading file size limit by defining the size in maxAllowedContentLength. But how to achieve this in ASP.NET Blazor server-side hosted application?

Can anyone suggest a possible solution?

@danroth27 danroth27 transferred this issue from dotnet/blazor Jul 15, 2019
@mkArtakMSFT mkArtakMSFT added area-blazor Includes: Blazor, Razor Components question labels Jul 15, 2019
@mkArtakMSFT
Copy link
Member

Thanks for contacting us, @BerlyChristopher.
As of now we haven't defined a story around file-uploads in Blazor Server side apps. We'll do that as part of #12205

For now you can do two things:

  1. Use native JavaScript capabilities to upload files to a web service endpoint directly (using fetch, XmlHttpRequest, etc....)
  2. Do what has been discussed Blazor-browser connection disconnected, While upload the file above 1MB #11643 - increase the buffer size in Startup.cs

@mkArtakMSFT mkArtakMSFT added this to the Discussions milestone Jul 15, 2019
@ghost
Copy link

ghost commented Dec 6, 2019

Thank you for contacting us. Due to no activity on this issue we're closing it in an effort to keep our backlog clean. If you believe there is a concern related to the ASP.NET Core framework, which hasn't been addressed yet, please file a new issue.

@ghost ghost closed this as completed Dec 6, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Dec 6, 2019
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components question
Projects
None yet
Development

No branches or pull requests

2 participants