mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
Increase size of input that decoder accepts
This commit is contained in:
parent
e3a3e0bde0
commit
e432d6cc74
|
@ -86,10 +86,10 @@ public final class DecodeServlet extends HttpServlet {
|
|||
|
||||
private static final Logger log = Logger.getLogger(DecodeServlet.class.getName());
|
||||
|
||||
// No real reason to let people upload more than a 4MB image
|
||||
private static final long MAX_IMAGE_SIZE = 4000000L;
|
||||
// No real reason to deal with more than maybe 8.3 megapixels
|
||||
private static final int MAX_PIXELS = 1 << 23;
|
||||
// No real reason to let people upload more than a 10MB image
|
||||
private static final long MAX_IMAGE_SIZE = 10_000_000L;
|
||||
// No real reason to deal with more than maybe 10 megapixels
|
||||
private static final int MAX_PIXELS = 10_000_000;
|
||||
private static final byte[] REMAINDER_BUFFER = new byte[32768];
|
||||
private static final Map<DecodeHintType,Object> HINTS;
|
||||
private static final Map<DecodeHintType,Object> HINTS_PURE;
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
</form>
|
||||
<form action="decode" method="post" enctype="multipart/form-data">
|
||||
<tr>
|
||||
<td style="text-align:right">Or upload a file (&lt;2MB, &lt;8MP):</td>
|
||||
<td style="text-align:right">Or upload a file (&lt;10MB, &lt;10MP):</td>
|
||||
<td><input type="file" name="f"/></td>
|
||||
<td><input type="submit"/></td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in a new issue