0
foreach ($_FILES["inputfileSendTorrent"]["error"] as $key => $error)
{
$arqName = $_FILES['inputfileSendTorrent']['name'][$i];
$arqTemp = $_FILES['inputfileSendTorrent']['tmp_name'][$i];
if(!@move_uploaded_file($arqTemp, $uploaddir.$arqName))
{
$error = error_get_last();
echo $error['message'];
}
$i++;
}
Returns this error move_uploaded_file(): Unable to move '/tmp/phpTeiKHq' to './arquivos/ZawabMNHXgvV/2MB'
Creating the folder
if(!@mkdir(DIR_ARQUIVOS.$chave, 777, true))
{
$error = error_get_last();
echo $error['message'];
}
the briefcase
./arquivos/ZawabMNHXgvV/
is there? You have written permission?– Guilherme Nascimento
In linux environment always checks the permissioning of folders, returns us the permission that is
– Thiago Santos
@Guilhermenascimento I gave permission 777 for the folder
./arquivos
, but when I create the new folder, I don’t know with what permission it comes.– Lucas Caresia
@How can I do that ??
– Lucas Caresia
There is no way to answer the question as we have no way to reproduce the problem, read this: http://answall.com/help/mcve
– Guilherme Nascimento
how you’re creating this folder?
– Thiago Santos
@Thiagosantos I asked the question.
– Lucas Caresia
@Guilhermenascimento I already put the code of how I create the folder, I believe I can already reproduce.
– Lucas Caresia
Responded to, Lucas
– Guilherme Nascimento