mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
Raise MP limit and improve message about limit on decode page
git-svn-id: https://zxing.googlecode.com/svn/trunk@2597 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
921c0178e0
commit
fe9e0ccf6a
|
@ -79,8 +79,8 @@ public final class DecodeServlet extends HttpServlet {
|
||||||
|
|
||||||
// No real reason to let people upload more than a 2MB image
|
// No real reason to let people upload more than a 2MB image
|
||||||
private static final long MAX_IMAGE_SIZE = 2000000L;
|
private static final long MAX_IMAGE_SIZE = 2000000L;
|
||||||
// No real reason to deal with more than maybe 2 megapixels
|
// No real reason to deal with more than maybe 8.3 megapixels
|
||||||
private static final int MAX_PIXELS = 1 << 21;
|
private static final int MAX_PIXELS = 1 << 23;
|
||||||
private static final byte[] REMAINDER_BUFFER = new byte[8192];
|
private static final byte[] REMAINDER_BUFFER = new byte[8192];
|
||||||
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;
|
||||||
|
|
|
@ -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 (&lt;2MB):</td>
|
<td style="text-align:right">Or upload a file (&lt;2MB, &lt;8MP):</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>
|
||||||
|
|
Loading…
Reference in a new issue