I have an upload system where a directory is created as follows:
$diretorio = mkdir("../../arquivos/".$anoEdicao,0777);
Eg: It creates the files / 2018 directory.
The problem is that even the system directory is allowed 777 (I'm using locally), the upload directory is created, but without permission:
Ihavetriedtoreinforcewiththecommandbelow:
chmod($diretorio,0777);
Butitdidnotworkanditisnotuploaded.
if(move_uploaded_file($temp,$diretorio."/".$codArquivo)){
....
}
How can I resolve this problem?