This commit is contained in:
@@ -41,13 +41,13 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
/// <summary>
|
||||
/// Upload and import file
|
||||
/// Max 100mb total
|
||||
/// Max 100MiB total
|
||||
/// </summary>
|
||||
/// <returns>Results</returns>
|
||||
[Authorize]
|
||||
[HttpPost("upload")]
|
||||
[DisableFormValueModelBinding]
|
||||
[RequestSizeLimit(100000000)]//100mb limit https://github.com/aspnet/Announcements/issues/267
|
||||
[RequestSizeLimit(AyaNova.Util.ServerBootConfig.MAX_IMPORT_FILE_UPLOAD_BYTES)]
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user