I'm trying to check the file size that is going to be submitted through
<t:inputFileUpload... and I have set for the ExtensionsFilter:
<filter>
    <filter-name>MyFacesExtensionsFilter</filter-name>
   
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
    <init-param>
      <param-name>maxFileSize</param-name>
      <param-value>100k</param-value>
      <description>Set the size limit for uploaded files. Format: 10 - 10
bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB</description>
    </init-param>
    <init-param>
      <param-name>uploadThresholdSize</param-name>
      <param-value>100k</param-value>
      <description>Set the threshold size - files below this limit are
stored in memory, files above this limit are stored on disk. Format: 10 - 10
bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB</description>
    </init-param>
....

I'm expecting to get some error while trying to upload a 2MB file but it
doesn't, any ideas what is this happening?

Many thanks in advance,

Johann
-- 
View this message in context: 
http://www.nabble.com/Tobago-maxFileSize-tf2762720.html#a7702705
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to