Fix typo to fix upload list

This commit is contained in:
2022-12-06 19:17:12 +01:00
parent 0d6219f6b6
commit 828a3e9ef5

View File

@@ -102,7 +102,7 @@ public class UploadService {
try {
Stream<Path> stream2 = Files.list(p)
.filter(p2 -> !p2.getFileName().toString().equals(".key"));
filePathOptional = stream.findFirst();
filePathOptional = stream2.findFirst();
stream2.close();
if (filePathOptional.isPresent()) {
uploadedFile.name = filePathOptional.get().getFileName().toString();