From 62cc2e29f14317f472ac889f68c3e95ae7be4585 Mon Sep 17 00:00:00 2001 From: Mathieu Perrin <46241768+Mathieu414@users.noreply.github.com> Date: Tue, 12 Mar 2024 11:43:36 +0100 Subject: [PATCH] Fix file path in download_file.php (#174) * 173: Fix file path in download_file.php * 173: Small PR fix Co-authored-by: Atmos4 <32951942+Atmos4@users.noreply.github.com> --------- Co-authored-by: Atmos4 <32951942+Atmos4@users.noreply.github.com> --- app/uploads/download_file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/uploads/download_file.php b/app/uploads/download_file.php index a47ce4e0..5b08d99d 100644 --- a/app/uploads/download_file.php +++ b/app/uploads/download_file.php @@ -3,7 +3,7 @@ $file_id = $_GET['id']; $file = em()->find(SharedFile::class, $file_id); -$path = "app/uploads/" . $file->path; +$path = app_path() . "/uploads/" . $file->path; if (file_exists($path)) { header("Content-Type: " . $file->mime);