This commit is contained in:
2021-03-16 15:15:13 +00:00
parent 055b9e77c3
commit 9236c91ff6
2 changed files with 3 additions and 2 deletions

View File

@@ -211,7 +211,8 @@ namespace AyaNova.Api.Controllers
[Authorize]
[HttpPost]
[DisableFormValueModelBinding]
[RequestSizeLimit(10737418241)]//10737418240 = 10gb https://github.com/aspnet/Announcements/issues/267
// [RequestSizeLimit(10737418241)]//10737418240 = 10gb https://github.com/aspnet/Announcements/issues/267
[RequestSizeLimit(1048576)]//1048576 = 1mb for testing
public async Task<IActionResult> UploadAsync()
{
//Adapted from the example found here: https://docs.microsoft.com/en-us/aspnet/core/mvc/models/file-uploads#uploading-large-files-with-streaming