Skip to content

Commit

Permalink
comment added
Browse files Browse the repository at this point in the history
  • Loading branch information
danishnafish1997 committed Mar 26, 2020
1 parent 6202957 commit d83ad4b
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -32,6 +32,7 @@ public void addAttachments(ItemType itemType, Map<Long, List<String>> itemIdFile
for (String filePath : attachmentFilePaths) {

Path path = Paths.get(filePath);
// remove special character from filename
String fileName = path.getFileName().toString().replaceAll("[\\\\/:*?\"<>|]", "");
if(fileName.length() > 240) {
fileName = fileName.substring(0, 240);
Expand Down

0 comments on commit d83ad4b

Please sign in to comment.