From fd6b64fa5838ef0d810817eca5f39b9fa6b7d739 Mon Sep 17 00:00:00 2001 From: Trygve Date: Sun, 3 Dec 2023 16:51:28 +0100 Subject: [PATCH] fix --- upload.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/upload.php b/upload.php index 71edb5c..e128c20 100755 --- a/upload.php +++ b/upload.php @@ -3,7 +3,7 @@ session_start(); ini_set('display_errors', '1'); ini_set('display_startup_errors', '1'); -$public_url = 'filer.trygve.net/'; +$public_url = 'https://filer.trygve.net/'; if(isset($_FILES['file'])) { $file = $_FILES['file']; @@ -48,8 +48,7 @@ if(isset($_FILES['file'])) { if(move_uploaded_file($file_tmp, $file_destination)) { $path = $public_url . $file_destination; - $filLink = '' . $path . ''; - //echo $fillink;() + $filLink = '' . $path . ''; $buttonData = 'Filen ble lastet opp! Kopier lenke'; $_SESSION['linkData'] = 'Filen ble lastet opp! ' . $filLink; $_SESSION['link'] = $path;