![]()
|
||||
How to set the maximum width/height of the image file by OOP MimeParser: Java API for file upload JSP/Servlet by multipart/form-data
Java API for file upload JSP/Servlet by multipart/form-data. It can set the maximum width/height of the image file (JPEG, GIF or PNG) to be uploaded.
If the user tries to upload the larger files, your JSP/Servlet can catch the exception.
Related Pages:
|
||||
Width/height of the image file (JPEG, PNG or GIF) to be uploadedTo enable this feature, your JSP/Servlet container (such as Apache Tomcat, Jetty or WebLogic) must be run on JDK 1.4 or later.
If your web application accepts the multipart/form-data request for the image file (JPEG, PNG or GIF), you may want to set the maximum width/height of the image file to be uploaded.
(As for the maximum file size, please read another page.)
For example, you may build JSP/Servet for the online photo album, and you may want to set the maximum width/height of the JPEG to be uploaded.
In addition, please edit:
With this configuration, the following methods will check the width/height of the image file to be uploaded:
|
|
|||
|
Java and all Java-based trademarks and logos are trademarks or registered of Sun Microsystems, Inc. in the United States and other countries. |
||||
|
ALL CONTENTS COPYRIGHT 1997-2007, OOP-Research Corporation. All rights reserved. |
||||