Normal writing of the uploaded documents is working fine,was trying to encrypt the files now, but receive:file_put_contents(path_to_file) failed to open stream: permission denied at phpfn.php line 10129:func SaveFile($folder, $fn, $filedata)
…
else
$res = file_put_contents($file, $filedata, LOCK_EX);--------------$file = “FOLDER_PATH\4ozZlub96a_6uvHEECZMuBpB1O8.”
$fn = "4ozZlub96a_6uvHEECZMuBpB1O8."Attempting to encrypt at :
Row_Inserting()
$rsnew[‘attachment’] = Encrypt($rsnew[‘attachment’]);
notes:logged in as administrator (-1) the file writes to disk, was logged in as a regular user… is there a setting somewhere ??also this just encrypts the file name… is there anywhere we can hook into to encrypt the contentsthanks,
so not sure why a regular user is access denied and the admin account is able to
in regards to actually encrypting the file contentsin phpfn.php at:func SaveFile($folder, $fn, $filedata)
…
else
$res = file_put_contents($file, $filedata, LOCK_EX);i think we would need to intercept as:file_put_contents($file, Encrypt($filedata), LOCK_EX);is this possible, obviously the decrypt method would need to be added to the function that would read a filethanks