Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Max upload size for ASP.MVC CORE website

public void ConfigureServices(IServiceCollection services)
{
    services.Configure<FormOptions>(options =>
    {
        options.MultipartBodyLengthLimit = 52428800;

    });

    services.AddMvc();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Max #upload #size #CORE #website
ADD COMMENT
Topic
Name
4+3 =