HTML5 comes with a great feature which is the ability to upload files using the XMLHttpRequest version 2. Modern Gecko and WebKit browsers include a wonderful object FormData that allows combining both simple and complex form data (text and files) in the Ajax request object. Let's show you how to do this. In the example, we are having a form with two fields, one field represents a simple text field, and the other one represents a file field as shown in the code below.
Read full article from Ajax file upload to a Java Servlet in HTML5 | Technical Advices, "An advice can always help"
No comments:
Post a Comment