open fun setPreserveFilename(preserveFilename: Boolean): Unit
Set whether to preserve the filename as sent by the client, not stripping off path information in CommonsMultipartFile#getOriginalFilename().
Default is "false", stripping off path information that may prefix the actual filename e.g. from Opera. Switch this to "true" for preserving the client-specified filename as-is, including potential path separators.
Since
4.3.5
See Also
#getOriginalFilename()CommonsMultipartResolver#setPreserveFilename(boolean)