Hi,
I want to upload a file and then read it back using a fopen and fread in Custom code. However the permissions are set to 644 on the uploaded file and I don't see any way to change them at the time of upload.
if i run is_readable on the file, i get false, so I expect that is my problem.
The fopen simply returns nothing. It isn't false, or anything else. just null.
Is there any way I can set permissions when the file uploads?
Cheers
Tim
I want to upload a file and then read it back using a fopen and fread in Custom code. However the permissions are set to 644 on the uploaded file and I don't see any way to change them at the time of upload.
if i run is_readable on the file, i get false, so I expect that is my problem.
The fopen simply returns nothing. It isn't false, or anything else. just null.
Is there any way I can set permissions when the file uploads?
Cheers
Tim