Permissions of uploaded files (Azure Websites)
-
For some reason the files uploaded to ‘wpcf7_uploads’ have 600 permissions. Then, they aren’t removed, neither the folders which contain them.
‘wpcf7_uploads’ and folders inside it have 755 permissions.To solve this I had to change the permissions of the file to be removed in the function ‘wpcf7_rmdir_p( $dir )’ (includes/functions.php):
function wpcf7_rmdir_p( $dir ) { if ( is_file( $dir ) ) { chmod($dir, 0644); // new line @unlink( $dir ); return true; } .... }
Any better solution? WordPress is running on Azure Websites. I don’t know why the files are being uploaded with 600 permissions :/
- The topic ‘Permissions of uploaded files (Azure Websites)’ is closed to new replies.