Skip to content

Commit

Permalink
#IQSS/3818 Delete temp thumbnail files
Browse files Browse the repository at this point in the history
  • Loading branch information
haarli committed Jun 14, 2023
1 parent 9c809c4 commit ffad284
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,10 @@ private static boolean generatePDFThumbnail(StorageIO<DataFile> storageIO, int s
return false;
}
finally {
tempFile.delete();
try {
tempFile.delete();
}
catch (Exception e) {}
}
}

Expand Down Expand Up @@ -367,7 +370,10 @@ private static boolean generateImageThumbnailFromInputStream(StorageIO<DataFile>
}
finally {
if(tempFileRequired) {
tempFile.delete();
try {
tempFile.delete();
}
catch (Exception e) {}
}
}

Expand Down

0 comments on commit ffad284

Please sign in to comment.