Logo Help Center

Adding custom file types to Enterprise

Adding custom file types to Enterprise

Enterprise comes with a long list of supported file types, Files that are in this list can be uploaded by end users.

To add additional file types, follow these steps:

Step 1. Open the configserver.php file for the Enterprise Server on which the change needs to be made.

Tip: (For Enterprise Server 10.1 or higher only) Easily manage and configure settings of all configuration files by adding them to a single configuration file.

Step 2. Locate the EXTENSIONMAP section.

//    Mapping of file types (extensions, for example image.jpg) to their MIME type and  
//    object type as stored in the Enterprise database.
define ('EXTENSIONMAP', serialize( array(
	'.jpg' => array( 'image/jpeg', 'Image'),
	'.jpeg' => array( 'image/jpeg', 'Image'),
	'.gif' => array( 'image/gif', 'Image'),
	'.tif' => array( 'image/tiff', 'Image'),
	'.tiff' => array( 'image/tiff', 'Image'),
	'.png' => array( 'image/png', 'Image'),

Step 3. Add the required file type in the same format as the existing ones and make sure that it is added in lower case.

Example: Here, the Nikon RAW image format is added:

'.nef' => array( 'image/raw', 'Image'),

Step 4. Save the file.

Step 5. (Optional) Newly added file types will appear with the file icon for files of type 'Other'. To add a custom icon, see Using custom file icons in Enterprise Server.

Was this article helpful?
0 out of 0 found this helpful / Created: / Updated:
Have more questions? Submit a request


Please sign in to leave a comment.