Difference between revisions of "File Name Restriction"
Line 5: | Line 5: | ||
[[Image:FileTypeRestriction.png|link=]] | [[Image:FileTypeRestriction.png|link=]] | ||
− | The file name restriction feature is [[Variable processor|variable processor]] compatible for both [[Custom Field Type: Link – Single File|single file]] and [[Custom Field Type: Link – Multiple Files|multiple file uploads]]. | + | The file name restriction feature is [[Variable processor|variable processor]] compatible for both [[Custom Field Type: Link – Single File|single file]] and [[Custom Field Type: Link – Multiple Files|multiple file uploads]]. For example, the following configuration will enforce uploaded files to be renamed to: ''name of the current Level 1 record'' - ''current year'': |
+ | [[Image:VariablesInFileNameRestriction.png|link=]] | ||
+ | |||
+ | <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Note: Enforcing a file name does NOT affect the file extension.</pre> | ||
When users upload their files, they will be presented with a message informing them that their files will be renamed per the naming convention you have specified: | When users upload their files, they will be presented with a message informing them that their files will be renamed per the naming convention you have specified: | ||
Line 14: | Line 17: | ||
When ''File Name Restriction'' is configured, multiple files uploaded to the same field will be named with version numbers. If your ''File Name Restriction'' is set to ''filename'', the first file uploaded will be renamed ''filename'', the second file uploaded will be renamed to ''V_1_filename'', etc. | When ''File Name Restriction'' is configured, multiple files uploaded to the same field will be named with version numbers. If your ''File Name Restriction'' is set to ''filename'', the first file uploaded will be renamed ''filename'', the second file uploaded will be renamed to ''V_1_filename'', etc. | ||
− | + | <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Note that any spaces in file names specified will be replaced by the underscore character ("_"). Certain special characters including colons, commas, asterisks, percentage signs and question marks in the file names will also be replaced with underscores.</pre> | |
− | |||
− | Note that any spaces in file names specified will be replaced by the underscore character ("_"). | ||
− | |||
==See Also== | ==See Also== |
Revision as of 13:26, 22 July 2014
On Single File and Multiple File Upload fields, you can enforce a file naming convention to files uploaded to SmartSimple.
To configure this feature, edit the custom field, and enter the file name you want to enforce on all uploaded files into SmartSimple, and save your changes.
The file name restriction feature is variable processor compatible for both single file and multiple file uploads. For example, the following configuration will enforce uploaded files to be renamed to: name of the current Level 1 record - current year:
Note: Enforcing a file name does NOT affect the file extension.
When users upload their files, they will be presented with a message informing them that their files will be renamed per the naming convention you have specified:
When File Name Restriction is configured, multiple files uploaded to the same field will be named with version numbers. If your File Name Restriction is set to filename, the first file uploaded will be renamed filename, the second file uploaded will be renamed to V_1_filename, etc.
Note that any spaces in file names specified will be replaced by the underscore character ("_"). Certain special characters including colons, commas, asterisks, percentage signs and question marks in the file names will also be replaced with underscores.