Author: ajaquith
Date: Sat Jan 30 15:26:06 2010
New Revision: 904788
URL: http://svn.apache.org/viewvc?rev=904788&view=rev
Log:
Fixed bug in AttachmentActionBean that prevented the size of uploaded
attachments from being seen.
Modified:
incubator/jspwiki/trunk/src/java/org/apache/wiki/action/AttachmentActionBean.java
Modified:
incubator/jspwiki/trunk/src/java/org/apache/wiki/action/AttachmentActionBean.java
URL:
http://svn.apache.org/viewvc/incubator/jspwiki/trunk/src/java/org/apache/wiki/action/AttachmentActionBean.java?rev=904788&r1=904787&r2=904788&view=diff
==============================================================================
---
incubator/jspwiki/trunk/src/java/org/apache/wiki/action/AttachmentActionBean.java
(original)
+++
incubator/jspwiki/trunk/src/java/org/apache/wiki/action/AttachmentActionBean.java
Sat Jan 30 15:26:06 2010
@@ -340,11 +340,12 @@
}
// Close the stream and delete the filebean, since we're done with it
+ long size = filebean.getSize();
data.close();
filebean.delete();
log.info( "User " + user + " uploaded attachment to " +
getPage().getName() + " called " + filename + ", size "
- + filebean.getSize() );
+ + size + " bytes." );
return created;
}