Php 具有CodeIgniter上载类的文件权限

Php 具有CodeIgniter上载类的文件权限,php,codeigniter,Php,Codeigniter,嗨,我需要对我上传的文件设置777权限,但我在codeigniter中找不到任何上传文件的文档。。。是否可以将许可777与codeigniter的上载类放在一起 $group\u id=$this->input->post('group\u id',TRUE) 您可以使用chmod更改权限。像这样的东西可能有用。 上传完do_后,您可以尝试添加以下行 if(is_file($config['upload_path'])) { chmod($config['upload_path'], 7

嗨,我需要对我上传的文件设置777权限,但我在codeigniter中找不到任何上传文件的文档。。。是否可以将许可777与codeigniter的上载类放在一起

$group\u id=$this->input->post('group\u id',TRUE)


您可以使用chmod更改权限。像这样的东西可能有用。 上传完do_后,您可以尝试添加以下行

if(is_file($config['upload_path']))
{
    chmod($config['upload_path'], 777); ## this should change the permissions
}
你可以和我一起使用

if(is_file($config['upload_path']))
{
    chmod($config['upload_path'], 777); ## this should change the permissions
}
$old = umask(0);
$logofilepath = $config['upload_path'].$filename;
if(is_file($logofilepath))
{
chmod($logofilepath, 0777);
}
umask($old);