We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

FileStorage | Forum

AppXprt Aug 18 '18
In ow_system_plugins/base/classes/file_storage.php


public function copyFile( $sourcePath, $destPath )    


if ( file_exists($sourcePath) && is_file($sourcePath) )        


copy($sourcePath, $destPath);            

chmod($destPath, 0666);            

return true;        


return false;    


If you copy and file to site root / it breaks the entire site with a Permission Denied

Perhaps 755 would be better or a check for if copying to / then 755?

The Forum post is edited by AppXprt Aug 18 '18