Upload large files
Overview
Use this article to configure your Sitefinity CMS and ASP.NET Core Renderer to be able to upload large files, if needed.
IIS hosting
If you host both Sitefinity CMS and the Renderer application on the IIS, you must add the following configuration to the web.config
files of both projects:
For more information, see Microsoft's documentation » IIS.
Standalone Renderer application
If you are running the ASP.NET Core Renderer as a standalone application for testing purposes, you can configure the maximum file size limitation.
For more information, see Microsoft's documentation » Kestrel maximum request body size.
In addition, add the following code in the Program.cs
file of the Renderer application:
builder.Services.Configure<IISServerOptions>(options =>
{options.MaxRequestBodySize = int.MaxValue;});
Upload large files in Sitefinity CMS
For uploading large files in the CMS, you must add the following configuration to the web.config
:
NOTE: Replace SandboxWebApp.dll
is the name of the Renderer .dll
.
Upload large files in forms
To upload large files through forms, you must add the following configuration to the web.config
of the CMS:
NOTE: Replace SandboxWebApp.dll
is the name of the Renderer .dll
.