You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by ha...@apache.org on 2003/04/17 22:11:24 UTC

cvs commit: cocoon-2.1/src/java/org/apache/cocoon/servlet/multipart Part.java

haul        2003/04/17 13:11:24

  Modified:    src/java/org/apache/cocoon/servlet/multipart Part.java
  Log:
  add method to get client-side filename of upload because PartOnDisk returns
  server-side filename.
  
  Revision  Changes    Path
  1.2       +8 -1      cocoon-2.1/src/java/org/apache/cocoon/servlet/multipart/Part.java
  
  Index: Part.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/servlet/multipart/Part.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Part.java	4 Apr 2003 13:19:05 -0000	1.1
  +++ Part.java	17 Apr 2003 20:11:24 -0000	1.2
  @@ -82,6 +82,13 @@
       public abstract String getFileName();
       
       /**
  +     * Returns the original filename
  +     */
  +    public String getUploadName(){
  +        return (String) headers.get("filename");
  +    }
  +    
  +    /**
        * Returns the length of the file content
        */
       public abstract int getSize();