diff --git a/Backend/Controllers/LiftController.cs b/Backend/Controllers/LiftController.cs
index 3d5abfd72b..6b639a8d56 100644
--- a/Backend/Controllers/LiftController.cs
+++ b/Backend/Controllers/LiftController.cs
@@ -41,6 +41,10 @@ public LiftController(IWordRepository repo, IProjectService projServ, IPermissio
/// POST: v1/projects/{projectId}/words/upload
/// Number of words added
[HttpPost("upload")]
+ // Allow clients to POST large import files to the server (default limit is 28MB).
+ // Note: The HTTP Proxy in front, such as NGNIX, also needs to be configured
+ // to allow large requests through as well.
+ [RequestSizeLimit(250_000_000)] // 250MB.
public async Task UploadLiftFile(string projectId, [FromForm] FileUpload fileUpload)
{
if (!_permissionService.HasProjectPermission(HttpContext, Permission.ImportExport))
diff --git a/Backend/Program.cs b/Backend/Program.cs
index de478375c7..085af01bde 100644
--- a/Backend/Program.cs
+++ b/Backend/Program.cs
@@ -12,14 +12,6 @@ public static void Main(string[] args)
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
- .ConfigureKestrel((context, options) =>
- {
- // Allow clients to POST large files to servers, such as project imports.
- // Note: The HTTP Proxy in front, such as NGNIX, also needs to be configured
- // to allow large requests through as well.
- // 250MB.
- options.Limits.MaxRequestBodySize = 250_000_000;
- })
.UseStartup();
}
}
diff --git a/user_guide/docs/project.md b/user_guide/docs/project.md
index e7bd9d05bd..4f1780841f 100644
--- a/user_guide/docs/project.md
+++ b/user_guide/docs/project.md
@@ -25,7 +25,13 @@ and associated with new data entries.
### Import and Export
-Currently, only one LIFT file can be imported per project.
+!!! note
+
+ Currently, the maximum size of Lift files supported for import is 250MB.
+
+!!! note
+
+ Currently, only one LIFT file can be imported per project.
After clicking the Export button, you can navigate to other parts of the website. A notification will appear in the App
Bar when the export is ready for download. A project that has reached hundreds of MB is size may take tens of minutes to
diff --git a/user_guide/mkdocs.yml b/user_guide/mkdocs.yml
index 98c07c10ed..b7a10a09c2 100644
--- a/user_guide/mkdocs.yml
+++ b/user_guide/mkdocs.yml
@@ -33,3 +33,5 @@ nav:
- Data Entry: dataEntry.md
- Data Cleanup: goals.md
- Admin: admin.md
+markdown_extensions:
+ - admonition