Skip to content

Commit

Permalink
fix(ms-notifiche-integration): fix controllo nomefile 20240903
Browse files Browse the repository at this point in the history
  • Loading branch information
federico-tocci-dxc authored and sgravinadxc committed Sep 16, 2024
1 parent cdb5462 commit e1ac8b3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ public Map<String, Object> drupalForward(@RequestBody final ForwardRichiestDrupa
}

final String[] fileNameDotSplitted = fileNameToUpload.split("\\.");
if(fileNameDotSplitted != null && fileNameDotSplitted.length > 2) {
throw new DrupalException("Nome file upload deve avere solo una estensione", CodiceErroreEnum.D01);
}
// if(fileNameDotSplitted != null && fileNameDotSplitted.length > 2) {
// throw new DrupalException("Nome file upload deve avere solo una estensione", CodiceErroreEnum.D01);
// }

if(fileNameDotSplitted.length > 0) {
final String estensioneFileUpperCase = fileNameDotSplitted[fileNameDotSplitted.length-1].toUpperCase();
Expand Down

0 comments on commit e1ac8b3

Please sign in to comment.