Multipart forms let browsers upload files to the website. They also have better handling for internationalization.
Default form handling uses the application/x-www-form-urlencoded content type. Multipart forms use the multipart/form-data encoding.
Resin's file uploading stores the uploaded file in a temporary directory. A servlet can get the filename for the temporary file by retrieving the form parameter. In the example, getParameter("file") gets the filename.
Servlets will generally copy the contents of the file to its permanent storage, whether stored on disk or in a database.
Copyright (c) 1998-2009 Caucho Technology, Inc. All rights reserved.
caucho® , resin® and quercus® are registered trademarks of Caucho Technology, Inc.