Permission 777 to my uploaded files

0

I need to put a 777 permission to my uploaded files, but I can not find any document to upload files in codeigniter ...

Is it possible to put the permission 777 with the load class of codeigniter ?

Already use

if(is_file($config['upload_path'])){
  chmod($config['upload_path'], 777);
}

and I still appear the same

    
asked by JOSAFAT MARTÍNEZ 30.08.2018 в 15:34
source

1 answer

1

Try this

$ruta = "carpetas/" . $_FILES['userfile']['name'];

$resultado = @move_uploaded_file($_FILES["userfile"]["tmp_name"], $ruta);
    
answered by 30.08.2018 / 16:01
source