cleanup, turn into record classes

This commit is contained in:
Daniel
2024-11-03 23:33:04 +02:00
parent bfefcd0718
commit 80640ebeab
4 changed files with 9 additions and 44 deletions

View File

@@ -45,9 +45,9 @@ public class Main {
HttpFileItem uploadedFile = multipartData.getFile("file");
if (uploadedFile != null) {
String fileName = uploadedFile.getFileName();
String contentType = uploadedFile.getContentType();
byte[] fileContent = uploadedFile.getContent();
String fileName = uploadedFile.fileName();
String contentType = uploadedFile.contentType();
byte[] fileContent = uploadedFile.content();
File uploadDir = new File("uploads");
if (!uploadDir.exists()) {