increased fixed limit for http POST request sizes to 100MB

This commit is contained in:
Michael Peter Christen 2014-06-26 11:58:07 +02:00
parent 8acae852a0
commit c7995d3e2a

View File

@ -149,7 +149,7 @@ public class YaCyDefaultServlet extends HttpServlet {
protected ConcurrentHashMap<File, SoftReference<Method>> templateMethodCache = null;
// settings for multipart/form-data
protected static final File TMPDIR = new File(System.getProperty("java.io.tmpdir"));
protected static final int SIZE_FILE_THRESHOLD = 20 * 1024 * 1024;
protected static final int SIZE_FILE_THRESHOLD = 100 * 1024 * 1024; // 100 MB is a lot but appropriate for multi-document pushed using the push_p.json servlet
protected static final FileItemFactory DISK_FILE_ITEM_FACTORY = new DiskFileItemFactory(SIZE_FILE_THRESHOLD, TMPDIR);
/* ------------------------------------------------------------ */
@Override