„secure_upload.php“ ändern
This commit is contained in:
@@ -29,7 +29,7 @@ if (!in_array($ext, $allowed)) {
|
||||
}
|
||||
|
||||
if (move_uploaded_file($_FILES["file"]["tmp_name"], $target_file)) {
|
||||
echo json_encode(["success" => true, "url" => "https://www.victorgiers.com/generate3d/" . basename($_FILES["file"]["name"])]);
|
||||
echo json_encode(["success" => true, "url" => "https://yourwebsite.com/yourtmpimagefolder/" . basename($_FILES["file"]["name"])]);
|
||||
} else {
|
||||
http_response_code(500);
|
||||
echo json_encode(["error" => "Failed to move uploaded file"]);
|
||||
|
||||
Reference in New Issue
Block a user