Minor change to upload API
This commit is contained in:
parent
d3551c4f0c
commit
4d8223d01c
|
@ -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);
|
||||
|
|
Reference in a new issue