공지사항 파일업로드 수정
Some checks failed
Close Pull Request / main (pull_request_target) Has been cancelled

This commit is contained in:
yangsh
2025-12-30 16:40:40 +09:00
parent fda9b9ab59
commit 38444fcb4f
13 changed files with 89 additions and 7 deletions

View File

@@ -33,9 +33,16 @@
<th>첨부파일</th>
<td colspan="5" style="min-height: 200px;">
<div>
<a href="<?= site_url('/board/notice/download/' . $files['file_sq']) ?>">
<?= esc($files['orig_name']) ?>
</a>
<?php if ($files['cloud_upload_yn'] === "Y"): ?>
<?php $link = NCLOUD_OBJECT_STORAGE_URL . $files['file_path'] . $files['file_name']; ?>
<a href="<?= $link ?>" download="<?= $files['orig_name'] ?>">
<?= esc($files['orig_name']) ?>
</a>
<?php else: ?>
<a href="<?= site_url('/board/notice/download/' . $files['file_sq']) ?>">
<?= esc($files['orig_name']) ?>
</a>
<?php endif; ?>
</div>
</td>
</tr>