| | |
| | | import static de.uhilger.filecms.api.FileMgr.PUB_DIR_NAME; |
| | | import static de.uhilger.filecms.api.FileMgr.PUB_DIR_PATH; |
| | | import de.uhilger.filecms.data.FileRef; |
| | | import de.uhilger.filecms.web.Initialiser; |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | import java.io.InputStream; |
| | |
| | | // Process a file upload |
| | | if (writeToFile) { |
| | | File uploadedFile = new File(targetDir, fileName); |
| | | uploadedFile.getParentFile().mkdirs(); |
| | | logger.log(Level.FINER, "writeToFile " + uploadedFile.getAbsolutePath()); |
| | | item.write(uploadedFile); |
| | | } else { |