Contact Form Processing Products - for all your needs

FormMail • Form Encryption • Hosted Forms


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.


Sets the permission modes for uploaded files.


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:

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:



From version 9 onwards:


Before version 9:


See Also