Blacklist originalFilenames in Repository
We need a mechanism to prevent users from uploading Thumbs.db
and files starting with .
or ~
.
The configuration options should be declared in application.properties.
addFile
or addImage
should throw an exception if the repositoryFile.originalFilename
is invalid.
Perhaps use the ant file matcher instead of regexp?
Edited by Matija Obreza