Fix typo to fix upload list
This commit is contained in:
@@ -102,7 +102,7 @@ public class UploadService {
|
|||||||
try {
|
try {
|
||||||
Stream<Path> stream2 = Files.list(p)
|
Stream<Path> stream2 = Files.list(p)
|
||||||
.filter(p2 -> !p2.getFileName().toString().equals(".key"));
|
.filter(p2 -> !p2.getFileName().toString().equals(".key"));
|
||||||
filePathOptional = stream.findFirst();
|
filePathOptional = stream2.findFirst();
|
||||||
stream2.close();
|
stream2.close();
|
||||||
if (filePathOptional.isPresent()) {
|
if (filePathOptional.isPresent()) {
|
||||||
uploadedFile.name = filePathOptional.get().getFileName().toString();
|
uploadedFile.name = filePathOptional.get().getFileName().toString();
|
||||||
|
|||||||
Reference in New Issue
Block a user