• Resolved davask

    (@davask42)


    Hi,

    I faced that situatiuon :
    if the file you want to replace do not exists, the file permission of the new file become 000

    What I did is adding this line :
    if($original_file_perms == 0) $original_file_perms = 436;

    here : enable-media-replace/upload.php > l.243

    after

    
    // save original file permissions
    $original_file_perms = fileperms($current_file) & 0777;
    
    • This topic was modified 5 years, 6 months ago by davask.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Replacing missing file’ is closed to new replies.