Update OT

This commit is contained in:
Naz 2025-07-24 09:22:59 +08:00
parent 98ba700ef2
commit 5298db78cb
4 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@
<template v-if="userInfo.filePath">
<div class="file-info">
<strong>Uploaded File:</strong>
<a :href="'/' + userInfo.filePath" target="_blank">
<a :href="userInfo.filePath" target="_blank">
View Uploaded File
</a>
</div>

View File

@ -1194,7 +1194,7 @@ namespace PSTW_CentralSystem.Controllers.API
try
{
var uploadsFolder = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot", "Media", "Overtime");
var uploadsFolder = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot/Media/Overtime");
if (!Directory.Exists(uploadsFolder))
Directory.CreateDirectory(uploadsFolder);
@ -1206,7 +1206,7 @@ namespace PSTW_CentralSystem.Controllers.API
await model.File.CopyToAsync(fileStream);
}
var relativePath = Path.Combine("Media", "Overtime", uniqueFileName).Replace("\\", "/");
var relativePath = $"/Media/Overtime/{uniqueFileName}";
var statusModel = new OtStatusModel
{