From 6529fd2d9080c114f4581805f23feb4eaaad8fc0 Mon Sep 17 00:00:00 2001 From: Zeftax Date: Sun, 23 Jun 2024 23:00:57 +0200 Subject: [PATCH] fileupload print protocol helps when directly pasting uploaded images as src --- docs/www/fileupload.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/www/fileupload.php b/docs/www/fileupload.php index ad2f2f5..4d35a24 100644 --- a/docs/www/fileupload.php +++ b/docs/www/fileupload.php @@ -30,7 +30,8 @@ if(isset($_POST["submit"])) { if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadDir.$combinedPath)) { echo "File is valid, and was successfully uploaded.\n"; - printf("location: assets.zdenekborovec.cz/upload/%s", $combinedPath); + printf("location: https://assets.zdenekborovec.cz/upload/%s", + $combinedPath); } else { echo "File upload failed.\n"; }