1
I have an upload system where a directory is created as follows:
$diretorio = mkdir("../../arquivos/".$anoEdicao,0777);
For example: It creates the directory archives/2018.
The problem is that even if the system directory has 777 permission ( I’m using it locally ), the upload directory is created, but without permission:
I’ve tried to reinforce with the command below:
chmod($diretorio, 0777);
but it did not help and this is not done the upload.
if(move_uploaded_file($temp,$diretorio."/".$codArquivo)){
....
}
How can I solve this problem?
@vnbrs I believe that’s right.
– Guilherme Lautert