diff --git a/AsbCloudWebApi/Controllers/ReportController.cs b/AsbCloudWebApi/Controllers/ReportController.cs index 13b15eff..a5d5f0a0 100644 --- a/AsbCloudWebApi/Controllers/ReportController.cs +++ b/AsbCloudWebApi/Controllers/ReportController.cs @@ -102,7 +102,8 @@ namespace AsbCloudWebApi.Controllers if (!wellService.IsCompanyOwnsWell((int)idCompany, idWell)) return Forbid(); // TODO: словарь content typoв - var relativePath = Path.Combine(fileService.RootPath, $"{idWell}", reportName); + var relativePath = Path.Combine(fileService.RootPath, $"{idWell}", + $"{reportService.ReportCategoryId}", reportName); return PhysicalFile(Path.GetFullPath(relativePath), "application/pdf", reportName); } catch (FileNotFoundException ex)