Screenshot of information (1) <input type="file" name="photo">
Screenshot of information (2) <input type="file" name="photo2">
$uploadFile = $uploadDir . '\\' . basename($_FILES['photo']['name']);
move_uploaded_file($_FILES['photo']['tmp_name'], $uploadFile);
$uploadFile2 = $uploadDir . '\\' . basename($_FILES['photo2']['name']);
move_uploaded_file($_FILES['photo2']['tmp_name'], $uploadFile);
$document->setImageValue('photo', array('path' => $uploadFile, 'width' => 120, 'height' => 120, 'ratio' => false));
$document->setImageValue('photo2', array('path' => $uploadFile, 'width' => 120, 'height' => 120, 'ratio' => false));
array(2)
{ ["photo"]=> array(5)
{ ["name"]=> string(15) "rmDqZ4OXcgY.jpg"
["type"]=> string(10) "image/jpeg"
["tmp_name"]=> string(45) "C:\OpenServer\userdata\php_upload\php52D8.tmp"
["error"]=> int(0) ["size"]=> int(566376)
}
["photo2"]=> array(5)
{ ["name"]=> string(16) "Screenshot_1.png"
["type"]=> string(9) "image/png"
["tmp_name"]=> string(45) "C:\OpenServer\userdata\php_upload\php5356.tmp"
["error"]=> int(0)
["size"]=> int(119446)
} }
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/css/bootstrap.min.css">
<title>PHPWord</title>
<style>
input {
display: block;
margin: 5px 0px;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-lg-12 py-2">
<div class="display-5">Chargeback form</div>
<div class="display-7">Payment system: <b>Name</b></div>
<form class="py-4" action="word.php" method="POST" enctype="multipart/formdata">
<input type="text" name="name" placeholder="Name">
<input type="text" name="bank_card" placeholder="Bank card">
<input type="number" name="amount" placeholder="Amount">
<input type="text" name="currency" placeholder="Currency">
<input type="text" name="amount_word" placeholder="Amount (words)">
<input type="date" name="registration_date" placeholder="Date of registration">
Screenshot of information (1) <input type="file" name="photo">
<button type="submit">Submit</button>
</form>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/js/bootstrap.min.js" integrity="sha384-oesi62hOLfzrys4LxRF63OJCXdXDipiYWBnvTl9Y9/TRlw5xlKIEHpNyvvDShgf/" crossorigin="anonymous"></script>
</body>
</html>
error_reporting = E_ALL
display_errors = On
display_startup_errors = On
PHP Notice: Undefined index: photo in C:\OpenServer\domains\maxbit.private\word.php on line 13
PHP Notice: Undefined index: photo in C:\OpenServer\domains\maxbit.private\word.php on line 14
$uploadFile = $uploadDir . '\\' . basename($_FILES['photo']['name']);
move_uploaded_file($_FILES['photo']['tmp_name'], $uploadFile);
нашел, исправил))