Images uploading with 640 permissions even with chmod applied
Hello,
It seems that permissions are randomly set between 640 and 644 every time I upload an image to a Network Solutions site using File Manipulation. I have read in other posts that Network Solutions said it was the script that was causing the problems, not them.
I've applied the chmod() found in other posts:
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["Insert"]) || isset($_POST["Insert_x"])){
chmod(WA_DFP_UploadFiles("WA_UploadResult1", "image", "0", "", "JPG:90", $WA_UploadResult1_Params), 0644);
}
?>
Now it seems the first time I upload an image it sets permissions to 640, but if upload the same image a second time the permissions get set to 644.
EDIT: After further testing it still seems a bit random.
Any thoughts on how I can resolve this? Do I need to make any changes to the helperphp.php file?
Thanks in advance