www.dextsolution.com
DEXTUPLOAD
NJ
menu toggleReference > devpia > dextuploadnj > NamingRules

devpia.dextuploadnj
Enum NamingRules

Minimum version supported
2.8.0
Minimum support environment
JRE 1.6
Description

Indicates how the file's filename is checked to ensure it is in a valid format that can be used by the file system.

Enum constantDescription
None It is the default. No checking.
Windows Follow the Windows OS file name convention.
UnixNLinux Follow the file name rules of Unix/Linux OS. The basic filename rules for Unix/Linux can be any letters except slash character.
RestrictedUnixNLinux Follow UnixNLinux rules but do not allow some additional characters that should not be used.
# When set direcly to an Environment object
Environment env = new Environment();
env.setLimitFilenameRule(NamingRules.Windows);

# When set as a property of an Environment bean
<property name="limitFilenameRule" value="Windows"/>

# When set a parameter of the ExtensionFileUploadFilter or DEXTUploadNJSpringExtensionUploadFilter
<init-param>
  <param-name>limitFilenameRule</param-name>
  <param-value>Windows</param-value>
</init-param>