diff --git a/MetFragWeb/src/main/java/de/ipbhalle/metfragweb/helper/FileStorer.java b/MetFragWeb/src/main/java/de/ipbhalle/metfragweb/helper/FileStorer.java index 7b179fb..6ae0e60 100644 --- a/MetFragWeb/src/main/java/de/ipbhalle/metfragweb/helper/FileStorer.java +++ b/MetFragWeb/src/main/java/de/ipbhalle/metfragweb/helper/FileStorer.java @@ -9,7 +9,7 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -import org.primefaces.model.UploadedFile; +import org.primefaces.model.file.UploadedFile; import de.ipbhalle.metfraglib.parameter.Constants; import de.ipbhalle.metfragweb.container.Messages; @@ -133,7 +133,7 @@ public File prepareFolder(String folderName, Messages errorMessages) { */ public File saveUploadedFile(UploadedFile file, File path) throws IOException { File fileToStore = new File(path.getAbsoluteFile() + Constants.OS_SPECIFIC_FILE_SEPARATOR + file.getFileName()); - InputStream is = file.getInputstream(); + InputStream is = file.getInputStream(); OutputStream out = new FileOutputStream(fileToStore); byte buf[] = new byte[1024]; int len; diff --git a/MetFragWeb/src/main/java/de/ipbhalle/metfragweb/helper/UserInputDataHandler.java b/MetFragWeb/src/main/java/de/ipbhalle/metfragweb/helper/UserInputDataHandler.java index 8909dc7..e5cd4cc 100644 --- a/MetFragWeb/src/main/java/de/ipbhalle/metfragweb/helper/UserInputDataHandler.java +++ b/MetFragWeb/src/main/java/de/ipbhalle/metfragweb/helper/UserInputDataHandler.java @@ -4,7 +4,7 @@ import java.io.FileInputStream; import java.io.InputStream; -import org.primefaces.model.UploadedFile; +import org.primefaces.model.file.UploadedFile; import de.ipbhalle.metfraglib.exceptions.RetentionTimeNotFoundException; import de.ipbhalle.metfraglib.exceptions.TooFewCandidatesException;