This commit is contained in:
@@ -404,7 +404,9 @@ public class ApiController {
|
|||||||
|
|
||||||
FileEntity fileEntity = optionalFileEntity.get();
|
FileEntity fileEntity = optionalFileEntity.get();
|
||||||
|
|
||||||
Path path = Paths.get(fileEntity.getProtectedFilePath());
|
Path path = type.toLowerCase().equals("image") ? Paths.get(fileEntity.getFilePath()) :
|
||||||
|
Paths.get(fileEntity.getProtectedFilePath());
|
||||||
|
|
||||||
File file = path.toFile();
|
File file = path.toFile();
|
||||||
|
|
||||||
NoCopyCheckResult noCopyCheckResult = noCopyFileService.checkFile(file,
|
NoCopyCheckResult noCopyCheckResult = noCopyFileService.checkFile(file,
|
||||||
|
|||||||
Reference in New Issue
Block a user