dev@woodstock.java.net

Re: [Issue 132] New - FileUpload: large files, when uploaded, do not display message

From: Dongmei Cao <Dongmei.Cao_at_Sun.COM>
Date: Fri, 20 Apr 2007 09:57:52 -0700

The MAX_SIZE is specified in the web.xml. By default, it is 1000000 bytes.

 From web.xml

  <!-- Upload Filter -->
  <filter>
    <filter-name>UploadFilter</filter-name>
    <filter-class>com.sun.webui.jsf.util.UploadFilter</filter-class>
    <init-param>
      <param-name>maxSize</param-name>
      <param-value>1000000</param-value>
    </init-param>
    <init-param>
      <param-name>sizeThreshold</param-name>
      <param-value>4096</param-value>
    </init-param>
  </filter>

Dongmei

Bob Yennaco wrote:

> Is this some specific restriction by the example app itself relative
> to the size of the file? That is, is there another instance of
> FileUpload in some other app where the same file does successfully
> upload? If not, is there some restriction in the component?
> Otherwise I find it hard to believe the JVM or the underlying OS can't
> handle this.
>
> camucci_at_dev.java.net wrote:
>
>> https://woodstock.dev.java.net/issues/show_bug.cgi?id=132
>> Issue #|132
>> Summary|FileUpload: large files, when uploaded, do
>> not displa
>> |y message
>> Component|test
>> Version|4.1
>> Platform|Sun
>> OS/Version|All
>> URL|
>> Status|NEW
>> Status whiteboard|
>> Keywords|
>> Resolution|
>> Issue type|ENHANCEMENT
>> Priority|P3
>> Subcomponent|example_app
>> Assigned to|bob_yennaco
>> Reported by|camucci
>>
>>
>>
>>
>>
>>
>> ------- Additional comments from camucci_at_dev.java.net Fri Apr 20
>> 12:40:23 +0000 2007 -------
>> Enhance the fileupload examples (4.1 example.war) to note that files
>> over x KB
>> or MB should be avoided.
>>
>> Currently, if you select a large file ( 3MB for example ) the app
>> will not
>> upload the file, nor will it display an error indicating the file is
>> too big.
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_woodstock.dev.java.net
> For additional commands, e-mail: dev-help_at_woodstock.dev.java.net
>