Increase size of input that decoder accepts

This commit is contained in:
Sean Owen 2014-01-31 11:31:19 +00:00
parent e3a3e0bde0
commit e432d6cc74
2 changed files with 5 additions and 5 deletions

View file

@ -86,10 +86,10 @@ public final class DecodeServlet extends HttpServlet {
private static final Logger log = Logger.getLogger(DecodeServlet.class.getName()); private static final Logger log = Logger.getLogger(DecodeServlet.class.getName());
// No real reason to let people upload more than a 4MB image // No real reason to let people upload more than a 10MB image
private static final long MAX_IMAGE_SIZE = 4000000L; private static final long MAX_IMAGE_SIZE = 10_000_000L;
// No real reason to deal with more than maybe 8.3 megapixels // No real reason to deal with more than maybe 10 megapixels
private static final int MAX_PIXELS = 1 << 23; private static final int MAX_PIXELS = 10_000_000;
private static final byte[] REMAINDER_BUFFER = new byte[32768]; private static final byte[] REMAINDER_BUFFER = new byte[32768];
private static final Map<DecodeHintType,Object> HINTS; private static final Map<DecodeHintType,Object> HINTS;
private static final Map<DecodeHintType,Object> HINTS_PURE; private static final Map<DecodeHintType,Object> HINTS_PURE;

View file

@ -64,7 +64,7 @@
</form> </form>
<form action="decode" method="post" enctype="multipart/form-data"> <form action="decode" method="post" enctype="multipart/form-data">
<tr> <tr>
<td style="text-align:right">Or upload a file (&amp;lt;2MB, &amp;lt;8MP):</td> <td style="text-align:right">Or upload a file (&amp;lt;10MB, &amp;lt;10MP):</td>
<td><input type="file" name="f"/></td> <td><input type="file" name="f"/></td>
<td><input type="submit"/></td> <td><input type="submit"/></td>
</tr> </tr>