Update OT
This commit is contained in:
parent
98ba700ef2
commit
5298db78cb
@ -77,7 +77,7 @@
|
|||||||
<template v-if="userInfo.filePath">
|
<template v-if="userInfo.filePath">
|
||||||
<div class="file-info">
|
<div class="file-info">
|
||||||
<strong>Uploaded File:</strong>
|
<strong>Uploaded File:</strong>
|
||||||
<a :href="'/' + userInfo.filePath" target="_blank">
|
<a :href="userInfo.filePath" target="_blank">
|
||||||
View Uploaded File
|
View Uploaded File
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1194,7 +1194,7 @@ namespace PSTW_CentralSystem.Controllers.API
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var uploadsFolder = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot", "Media", "Overtime");
|
var uploadsFolder = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot/Media/Overtime");
|
||||||
if (!Directory.Exists(uploadsFolder))
|
if (!Directory.Exists(uploadsFolder))
|
||||||
Directory.CreateDirectory(uploadsFolder);
|
Directory.CreateDirectory(uploadsFolder);
|
||||||
|
|
||||||
@ -1206,7 +1206,7 @@ namespace PSTW_CentralSystem.Controllers.API
|
|||||||
await model.File.CopyToAsync(fileStream);
|
await model.File.CopyToAsync(fileStream);
|
||||||
}
|
}
|
||||||
|
|
||||||
var relativePath = Path.Combine("Media", "Overtime", uniqueFileName).Replace("\\", "/");
|
var relativePath = $"/Media/Overtime/{uniqueFileName}";
|
||||||
|
|
||||||
var statusModel = new OtStatusModel
|
var statusModel = new OtStatusModel
|
||||||
{
|
{
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user