From e02e02f86e275544c5919e1c867d1843e06181cf Mon Sep 17 00:00:00 2001 From: netconomy Date: Thu, 6 Sep 2007 16:49:15 +0000 Subject: =?UTF-8?q?Streaming=20R=C3=BCckbau?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@211 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- src/main/java/at/gv/egiz/pdfas/web/helper/TempDirHelper.java | 3 ++- .../java/at/knowcenter/wag/egov/egiz/web/servlets/VerifyServlet.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main/java/at/gv/egiz/pdfas/web/helper/TempDirHelper.java b/src/main/java/at/gv/egiz/pdfas/web/helper/TempDirHelper.java index 23c01fd..c16b96f 100644 --- a/src/main/java/at/gv/egiz/pdfas/web/helper/TempDirHelper.java +++ b/src/main/java/at/gv/egiz/pdfas/web/helper/TempDirHelper.java @@ -120,7 +120,8 @@ public class TempDirHelper */ public static boolean isReasonableToStore(int textLength) { - return textLength >= 10000; + return false; +// return textLength >= 10000; } public static PdfDataSource placePdfIntoTempDir(InputStream pdfInput, String fileNameSuffix) throws IOException diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/web/servlets/VerifyServlet.java b/src/main/java/at/knowcenter/wag/egov/egiz/web/servlets/VerifyServlet.java index dc52187..8d9e293 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/web/servlets/VerifyServlet.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/web/servlets/VerifyServlet.java @@ -286,7 +286,7 @@ public class VerifyServlet extends HttpServlet throw new PDFDocumentException(250, "The document is empty."); //$NON-NLS-1$ } - if (upload_fi.getContentType() != null && upload_fi.getContentType().equals("application/pdf")) + if (upload_fi.getContentType() != null && upload_fi.getContentType().startsWith("application/pdf")) { try { -- cgit v1.2.3