From 4d8223d01cfec8675382a13253f4d403d4495bef Mon Sep 17 00:00:00 2001 From: Timo Ley Date: Sun, 27 Sep 2020 16:00:22 +0200 Subject: [PATCH] Minor change to upload API --- jensmemes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jensmemes.php b/jensmemes.php index cc38adb..7621292 100644 --- a/jensmemes.php +++ b/jensmemes.php @@ -279,7 +279,7 @@ function upload() { if ($filename != "") { move_uploaded_file($_FILES['file']['tmp_name'], $jmimagepath . $homedir . "/" . $filename); $path = "images/" . $homedir . "/" . $filename; - $obj->file = $jmurl.$path; + $obj->files = array($jmurl.$path); $clientIP = $_SERVER['REMOTE_ADDR'];; $sqlType = "INSERT INTO images (user, path, cat, ip) VALUES ('$user', '$path', '$cat', '$clientIP')"; $res = mysqli_query($jmcon, $sqlType);