I have been racking my brain trying to figure this out.
I have a perl script that can uploads a file. The file is given a temp file name. This file is uploaded successfully, and then renamed to a different name using PHP, but has a permission of 600.
I need to be able to view this file once uploaded. But get a 403 error.
I cannot do a chmod() on it. I get an Operation not permitted.
I have searched and searched the net and have not found any good answers. I do not want to rewrite the Perl Script.
Does anyone know any workarounds that can change the file's permission to 644 or something?
Please help.
Thanks