diff options
| author | ilotterytea <iltsu@alright.party> | 2025-10-01 22:46:07 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-10-01 22:46:07 +0500 |
| commit | d7b91eddc715deaed60ffe592325b6ffd3d69089 (patch) | |
| tree | c551269b3de2f10a5878c89a0e22d83f7bf29dc5 /public | |
| parent | 7022695c057d2d3cb526db92de2ffdf54ba8d10e (diff) | |
fix: wrong custom filenames on download
Diffstat (limited to 'public')
| -rw-r--r-- | public/index.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/public/index.php b/public/index.php index a55199c..47ae798 100644 --- a/public/index.php +++ b/public/index.php @@ -249,7 +249,8 @@ $privacy_exists = is_file($_SERVER['DOCUMENT_ROOT'] . '/static/PRIVACY.txt'); <a href="<?= $file['full_url'] ?>"> <button>Full size</button> </a> - <a href="<?= $file['full_url'] ?>" download="<?= $file['name'] ?>"> + <a href="<?= $file['full_url'] ?>" + download="<?= sprintf('%s.%s', $file['name'], $file['extension']) ?>"> <button>Download</button> </a> </div> |
