From 2f2b152860de21c12adebafc25a3b5d75cdf3853 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Mon, 2 Jun 2025 01:59:00 +0400 Subject: feat: info for file uploader software --- public/index.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'public/index.php') diff --git a/public/index.php b/public/index.php index ef41ae6..9da069d 100644 --- a/public/index.php +++ b/public/index.php @@ -77,7 +77,14 @@ include_once $_SERVER['DOCUMENT_ROOT'] . '/../lib/partials.php'; -

Max file size:

+
@@ -262,6 +269,11 @@ include_once $_SERVER['DOCUMENT_ROOT'] . '/../lib/partials.php'; } function addUploadedFile(file) { + let file_url = `/${file.id}.${file.extension}`; + if (file.urls && file.urls.download_url) { + file_url = file.urls.download_url; + } + return `
@@ -277,7 +289,7 @@ include_once $_SERVER['DOCUMENT_ROOT'] . '/../lib/partials.php';

${(file.size / 1024 / 1024).toFixed(2)} MB

-- cgit v1.2.3