There appears to me to be an annoying bug or what I believe to be a bug in the FileUploadInterceptor. On line 311, if the file does not pass the file validation the error message is retrieved as such:
String errMsg = getTextMessage("struts.messages.error.file.too.large", new Object[]{inputName, file.getName(), "" + file.length()}, locale); The issue that I have with this is that file.length has been converted to a String. This now makes it impossible to format it as a number in your message. struts.messages.error.file.too.large=You attempted to upload a {2,number} byte file. A rather insignificant issue, but one that would be nice to see fixed in the future. Thanks! ----------------------------------------- ***Note:The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the Sender immediately by replying to the message and deleting it from your computer. Thank you. Premier Inc.