1 Reply Latest reply on Feb 5, 2007 4:49 PM by Shane Bryzak

    FileUpload component typo

    Ben Catherall Newbie

      Hi Shane,

      Noticed a typo in MultipartRequest.java

      public String getFileName(String name)
       {
       Param p = getParam(name);
       return (p != null && p instanceof FileParam) ?
       ((FileParam) p).getContentType() : null;
       }


      Should be

      public String getFileName(String name)
       {
       Param p = getParam(name);
       return (p != null && p instanceof FileParam) ?
       ((FileParam) p).getFilename() : null;
       }


      Cheers -ben