Skip to content

Commit

Permalink
fix: wrong file size
Browse files Browse the repository at this point in the history
  • Loading branch information
D-D-H committed Dec 7, 2023
1 parent 3ee8ad6 commit 14909ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public String handleLocalFileRequest(FileType type, Path path) throws IOExceptio
newFile.setUniqueName(uniqueName);
newFile.setOriginalName(file.getName());
newFile.setType(type);
newFile.setSize(file.lastModified());
newFile.setSize(file.length());
fileRepo.save(newFile);

return uniqueName;
Expand Down

0 comments on commit 14909ab

Please sign in to comment.