Gossamer Forum
Home : Products : Others : Fileman :

How to Change Default Upload File Permissions

Quote Reply
How to Change Default Upload File Permissions
Hello,

It looks like the permissions for newly uploaded files is by default set to 644. I would like to change it to 664. How would I edit the script / templates to do this? I'm using the single-user version. Thanks for any help you can provide!

Dan
Quote Reply
Re: [hearts121] How to Change Default Upload File Permissions In reply to
Ok, I figured it out. You need to edit the Commands.pm inside private/lib/GT/FileMan

You need to add the line: "chmod 0664, $fullfile;" in the cmd_upload routine, after the part of the code where the file is saved.