Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 79852 invoked from network); 3 Feb 2003 17:58:34 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 3 Feb 2003 17:58:34 -0000 Received: (qmail 25450 invoked by uid 97); 3 Feb 2003 18:00:04 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@nagoya.betaversion.org Received: (qmail 25443 invoked from network); 3 Feb 2003 18:00:03 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 3 Feb 2003 18:00:03 -0000 Received: (qmail 79605 invoked by uid 500); 3 Feb 2003 17:58:31 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 79591 invoked by uid 500); 3 Feb 2003 17:58:31 -0000 Received: (qmail 79588 invoked from network); 3 Feb 2003 17:58:31 -0000 Received: from icarus.apache.org (208.185.179.13) by daedalus.apache.org with SMTP; 3 Feb 2003 17:58:31 -0000 Received: (qmail 51367 invoked by uid 1289); 3 Feb 2003 17:58:31 -0000 Date: 3 Feb 2003 17:58:31 -0000 Message-ID: <20030203175831.51366.qmail@icarus.apache.org> From: rdonkin@apache.org To: jakarta-commons-cvs@apache.org Subject: cvs commit: jakarta-commons/fileupload/xdocs navigation.xml overview.xml tasks.xml index.xml X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N rdonkin 2003/02/03 09:58:31 Modified: fileupload project.xml fileupload/xdocs index.xml Added: fileupload/xdocs navigation.xml overview.xml tasks.xml Log: Created a basic maven documentation. Revision Changes Path 1.13 +6 -0 jakarta-commons/fileupload/project.xml Index: project.xml =================================================================== RCS file: /home/cvs/jakarta-commons/fileupload/project.xml,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- project.xml 20 Dec 2002 04:09:08 -0000 1.12 +++ project.xml 3 Feb 2003 17:58:30 -0000 1.13 @@ -80,6 +80,12 @@ jason@zenplex.com Zenplex + + Robert Burrell Donkin + rdonkin + rdonkin@apache.org + + 1.2 +17 -34 jakarta-commons/fileupload/xdocs/index.xml Index: index.xml =================================================================== RCS file: /home/cvs/jakarta-commons/fileupload/xdocs/index.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- index.xml 15 Aug 2002 07:50:20 -0000 1.1 +++ index.xml 3 Feb 2003 17:58:30 -0000 1.2 @@ -25,41 +25,24 @@

-
-

- Your application should detect whether or not FileUpload should be - invoked, based on the HTTP method and the content type of the request. -

-

- Assuming that you have decided that FileUpload should be invoked, you - might write the following code to handle a file upload request: -

  -    // Create a new file upload handler
  -    FileUpload upload = new FileUpload();
  -
  -    // Set upload parameters
  -    upload.setSizeMax(MAX_UPLOAD_SIZE);
  -    upload.setSizeThreshold(MAX_MEMORY_SIZE);
  -    upload.setRepositoryPath(TEMP_DIR);
  -
  -    // Parse the request
  -    List items = upload.parseRequest(request);
  -
  -    // Process the uploaded fields
  -    Iterator iter = items.iterator();
  -    while (iter.hasNext()) {
  -        FileItem item = (FileItem) iter.next();
  -
  -        if (item.isFormField()) {
  -            processTextParameter(request, item);
  -        } else {
  -            processFileParameter(request, item);
  -        }
  -    }
  -
-

+
+ + + + + + + +

+ Nightly builds are built every day from the current CVS HEAD. This is + the latest code and so should be treated with caution! +

+

+ Download nightly builds from + here. +

+
- 1.1 jakarta-commons/fileupload/xdocs/navigation.xml Index: navigation.xml =================================================================== FileUpload Jakarta 1.1 jakarta-commons/fileupload/xdocs/overview.xml Index: overview.xml =================================================================== Fileupload Overview Robert Burrell Donkin

Your application should detect whether or not FileUpload should be invoked, based on the HTTP method and the content type of the request.

Assuming that you have decided that FileUpload should be invoked, you might write the following code to handle a file upload request:

      // Create a new file upload handler
      FileUpload upload = new FileUpload();
  
      // Set upload parameters
      upload.setSizeMax(MAX_UPLOAD_SIZE);
      upload.setSizeThreshold(MAX_MEMORY_SIZE);
      upload.setRepositoryPath(TEMP_DIR);
  
      // Parse the request
      List items = upload.parseRequest(request);
  
      // Process the uploaded fields
      Iterator iter = items.iterator();
      while (iter.hasNext()) {
          FileItem item = (FileItem) iter.next();
  
          if (item.isFormField()) {
              processTextParameter(request, item);
          } else {
              processFileParameter(request, item);
          }
      }
  

1.1 jakarta-commons/fileupload/xdocs/tasks.xml Index: tasks.xml =================================================================== TODO Robert Burrell Donkin

The following is a list of items that need to be completed in Fileupload. Contributions are welcome!

  • Comprehensive unit test covering all the existing functionality.
  • Comprehensive Documentation for all the existing functionality.
--------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org