incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Winer" <awi...@gmail.com>
Subject Re: file upload UPLOAD_MAX_MEMORY limit
Date Thu, 07 Dec 2006 01:48:11 GMT
Good catch!  Could you file a JIRA on this one?

-- Adam


On 12/6/06, Jim Graf <jgraf@pacbell.net> wrote:
>
> I stumbled across this issue when I changed UPLOAD_MAX_MEMORY to 3G:
>
> org/apache/myfaces/trinidadinternal/webapp/UploadedFileProcessorImpl.java:
>
> private long   _maxDiskSpace = -1;
>
> but
>
> _maxDiskSpace = Integer.parseInt(maxDiskSpace);
>
> I think this makes more sense:
>
> _maxDiskSpace = Long.parseLong(maxDiskSpace);
>
> Occasionally we do need to allow a customer to upload a file greater
> then the 2G limit that the above code implies. I haven't (successfully)
> converted this app over to Trinidad yet and I'm unlikely to get any help
> from Oracle as I don't use jdeveloper and I don't have a contract.
>
> I will give it a try, but is the tomahawk file upload processor able to
> upload >2G files?
>
> thanks,
> jim
>
> ps. obviously _maxMemory should be treated the same way, but I don't
> care to hold a >2G file in memory even if I can.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message