File name template

From Wikanual

Jump to: navigation, search

INTERDUBS usually stores your uploaded files under a sanitized file name.

Letters in the file name that are not

a-z 
A-Z 
0-9 
- 
_ 
. 

will be replaced with with by

_

File names can have a maximum length of 80 characters.


Contents

Configuration

The configuration

File name template

allows you to take control of how the actual file name is being built.

The file name in INTERDUBS is independent from the titles that gets displayed in the client and admin interface.


The line for File name template can contain the following keywords:


IDXFILENAME

The file name of the uploaded file. This does NOT include the extension.


IDXSPACEFILENAME

The file name, spaces will not be replaced with _ characters.

To use the orignal file name including spaces you can set the configuration to

IDXSPACEFILENAME.IDXEXT

IDXEXT

The extension used by the original file.

Many functions depend on the extension of the file name being correct for the given file type. It is not very advisable to alter the extension of a file.

IDXRAND8STR

A random string made out of lower case numbers and letters. In this case the length is 8. The length can be between 1 and 32 characters.


Any other characters will be used literal.


Example

If you have a production called "Acme" and you like to have all files prepended with this string, so that clients that download files will see this in their file names then you would use the configuration:


Acme_IDXFILENAME.IDXEXT


Empty configuration

If the configuration is empty then the file name will be based on the cleaned up existing file name.


Alterations are easy

Please get in touch, if the the current set of features should not meet your requirements. It is fairly easy to amend this functionality.

Personal tools