0
While trying to upload a file it from 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
In his
php.ini
is setfile_uploads = On
? Make sure your file is within the limits set by other variables onphp.ini
:max_execution_time
,max_input_time
,post_max_size
,upload_max_filesize
– Leonardo Pessoa
@leonardopessoa This yes.
– Lucas Caresia