forked from ddrilling/AsbCloudServer
Reports download fix
This commit is contained in:
parent
165cabd5dd
commit
1ab8ae89ac
@ -102,7 +102,8 @@ namespace AsbCloudWebApi.Controllers
|
|||||||
if (!wellService.IsCompanyOwnsWell((int)idCompany, idWell))
|
if (!wellService.IsCompanyOwnsWell((int)idCompany, idWell))
|
||||||
return Forbid();
|
return Forbid();
|
||||||
// TODO: словарь content typoв
|
// 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);
|
return PhysicalFile(Path.GetFullPath(relativePath), "application/pdf", reportName);
|
||||||
}
|
}
|
||||||
catch (FileNotFoundException ex)
|
catch (FileNotFoundException ex)
|
||||||
|
Loading…
Reference in New Issue
Block a user