martinc     2004/01/24 15:39:18

  Modified:    src/share/org/apache/struts/upload
                        CommonsMultipartRequestHandler.java
  Log:
  Don't cast max size to an int, since the method wants a long anyway.
  
  PR: 26305
  Submitted by: Charles Chen
  
  Revision  Changes    Path
  1.14      +5 -5      
jakarta-struts/src/share/org/apache/struts/upload/CommonsMultipartRequestHandler.java
  
  Index: CommonsMultipartRequestHandler.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-struts/src/share/org/apache/struts/upload/CommonsMultipartRequestHandler.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- CommonsMultipartRequestHandler.java       21 Jan 2004 03:53:49 -0000      1.13
  +++ CommonsMultipartRequestHandler.java       24 Jan 2004 23:39:18 -0000      1.14
  @@ -218,7 +218,7 @@
           // see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23255
           upload.setHeaderEncoding(request.getCharacterEncoding());
           // Set the maximum size before a FileUploadException will be thrown.
  -        upload.setSizeMax((int) getSizeMax(ac));
  +        upload.setSizeMax(getSizeMax(ac));
           // Set the maximum size that will be stored in memory.
           upload.setSizeThreshold((int) getSizeThreshold(ac));
           // Set the the location for saving data on disk.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to