Image permissions after uploading for resize

我怕爱的太早我们不能终老 提交于 2019-12-03 14:42:17

You need to run this on the files:

chmod ($filepath, 0777);

in your case probably:

chmod("$upload_dir/$names",0777);

add this code with your absolute path

 $file_path = $path.'/files/ChatRequestXML/'.$profile_id.'.jpg'; // change with your actual path
        chmod($file_path, 0777);

hope this will sure help you

you need to add this line after move_uploaded_file function to set 777 permission for the uploaded file

<?php
   exec("chmod $upload_dir/$names 0777");
?>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!