Minor change to upload API

This commit is contained in:
Timo Ley 2020-09-27 16:00:22 +02:00
parent d3551c4f0c
commit 4d8223d01c
1 changed files with 1 additions and 1 deletions

View File

@ -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);