@@ -159,10 +159,9 @@ public class ImageFoundRequestHandler implements RequestHandler {
|
|||||||
Path tempFile = null;
|
Path tempFile = null;
|
||||||
try {
|
try {
|
||||||
tempFile = convertToSupportedFormat(fileUploadService.downloadImageFromUrl(url));
|
tempFile = convertToSupportedFormat(fileUploadService.downloadImageFromUrl(url));
|
||||||
File file = new File(fileEntity.getFilePath());
|
File file = tempFile.toFile();
|
||||||
// String filePath = tempFile.toAbsolutePath().toString();
|
// String filePath = tempFile.toAbsolutePath().toString();
|
||||||
NoCopyCheckResult checkResult = noCopyFileService.checkFile(file,
|
NoCopyCheckResult checkResult = noCopyFileService.checkFile(file, FileProtector.Type.IMAGE);
|
||||||
FileProtector.Type.IMAGE);
|
|
||||||
log.info("checkResult: " + checkResult);
|
log.info("checkResult: " + checkResult);
|
||||||
log.info("checkResult: " + checkResult);
|
log.info("checkResult: " + checkResult);
|
||||||
log.info("checkResult: " + checkResult);
|
log.info("checkResult: " + checkResult);
|
||||||
|
|||||||
Reference in New Issue
Block a user