This commit is contained in:
2020-06-25 17:39:31 +00:00
parent 2322135bb4
commit d52be28f0c
2 changed files with 49 additions and 9 deletions

View File

@@ -399,7 +399,7 @@ namespace AyaNova.Api.Controllers
//We have our files now can parse and insert into db
if (uploadFormData.UploadedFiles.Count > 0)
{
//deserialize the file
//deserialize each file and import
foreach (UploadedFileInfo a in uploadFormData.UploadedFiles)
{
if (!await biz.ImportAsync(ImportJson))
@@ -409,14 +409,6 @@ namespace AyaNova.Api.Controllers
DeleteTempUploadFile(uploadFormData);
return BadRequest(new ApiErrorResponse(biz.Errors));
}
//import into the db
var v = await FileUtil.StoreFileAttachmentAsync(a.InitialUploadedPathName, a.MimeType, a.OriginalFileName, theDate, attachToObject, Notes, ct);
}
}
}