Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) this change is supposed to prevent the creation of temporary files by Apache Commons Fileupload library in cases where it is not necessary (as proposed by thq in http://forum.yacy-websuche.de/viewtopic.php?f=8&t=1806)

low012f136ddcfd41d
diff --git a/source/de/anomic/http/httpd.java b/source/de/anomic/http/httpd.java
index ea3a7dae5..3f1d5125b 100644
--- a/source/de/anomic/http/httpd.java
+++ b/source/de/anomic/http/httpd.java
@@ -899,7 +899,7 @@ public final class httpd implements serverHandler, Cloneable {
}
// parse data in memory
- FileItemFactory factory = new DiskFileItemFactory();
+ FileItemFactory factory = new DiskFileItemFactory(1024 * 1024, new File(System.getProperty("java.io.tmpdir")));
FileUpload upload = new FileUpload(factory);
List<FileItem> items;
try {