-4
Well I’m a little confused here because I’m creating the folder but at the time of lifting it Upa a level up. where is the error ?
if (is_uploaded_file($_FILES["foto"]["tmp_name"])) {
mkdir("../img/$Npasta") or die("erro ao criar diretório $Npasta");
$foto = time() . '_' . $_FILES["foto"]["name"];
$diretorio = '../img/$Npasta';
$dirfoto = $diretorio.$foto;
if (!move_uploaded_file($_FILES["foto"]["tmp_name"], $dirfoto)) {
$error = TRUE;
}
}
Addendum: I am creating the dynamic folders taking the last id of the bank adding + 1 and the folder is being created, only not understanding is pq at the time of raising the variable seems to be "lost" because as you see the name is $Npasta.taltaltaltaltal.jpg where it actually would have to be img/4/filename.jpg
Paste the normal code here... because that way you can’t even read the code
– Sr. André Baill
If clicking on the image will increase, I put image pq to see the server and how it is being uploaded
– Arsom Nolasco