This page documents the FILE_MODE configuration setting in FormMail.
Type Of Setting
FILE_MODE is an OPTIONAL setting, which means...
OPTIONAL : you can change this setting if you need to, but the default value is fine for most circumstances.
Précis
Sets the permission modes for uploaded files.
Description
Set FILE_MODE to the permission mode you want for files saved to FILE_REPOSITORY.
To understand the valid values, you can read about the "chmod" command on any Linux system. This page is also helpful: www.php.net/chmod.
Useful values:
0664 | read-write by owner and group, read by others |
---|---|
0666 | read-write by everyone |
0444 | read-only by everyone |
0644 | read-write by owner, read by everyone else |
0 | don't set the protection mode (skips setting) |
Remember that uploaded files may be owned by "apache" or "nobody", or some other user name on your Linux or Unix server.
FILE_MODE may have no effect on Windows servers.
Default Value
From version 9 onwards:
$FILE_MODE = 0664;
Before version 9:
define("FILE_MODE",0664);
Examples
From version 9 onwards:
$FILE_MODE = 0;
Before version 9:
define("FILE_MODE",0);