When trying to upload a file from the error
<form method="POST">
<input type="file" name="inputfileSendTorrent">
<input type="submit" name="submitSendTorrent">
</form>
<?php
if(isset($_POST['submitSendTorrent']))
{
$uploaddir = '/arquivos/';
$arqName = $_FILES['inputfileSendTorrent']['name'];
$arqSize = $_FILES['inputfileSendTorrent']['size'];
$arqTemp = $_FILES['inputfileSendTorrent']['tmp_name'];
$upload = move_uploaded_file($arqTemp, $uploaddir . $arqName);
}
?>
Returns the error
Notice: Undefined index: inputfileSendTorrent in C:\xampp\htdocs\LuckTor2\pages\teste.php on line 9
Notice: Undefined index: inputfileSendTorrent in C:\xampp\htdocs\LuckTor2\pages\teste.php on line 10
Notice: Undefined index: inputfileSendTorrent in C:\xampp\htdocs\LuckTor2\pages\teste.php on line 11