http://jakarta.apache.org/commons/fileupload/using.html

says

// Create a new file upload handler
DiskFileUpload upload = new DiskFileUpload();

// Set upload parameters
upload.setSizeThreshold(yourMaxMemorySize);
upload.setSizeMax(yourMaxRequestSize);
upload.setRepositoryPath(yourTempDirectory);


which enables the use of a write to disk when big facility.

HTH DaveP.
 

    -----Original Message-----
    From: Derrick Koes [mailto:[EMAIL PROTECTED] 
    Sent: 19 April 2005 13:43
    To: Tomcat Users List
    Subject: RE: Can't multipart post large(ish) files via Tomcat 5.0.28
    
    
    Are you using struts?
    
    Make sure your controller element tempDir property value 
    matches that of the web apps context element's workDir.  
    The workDir is where uploaded files over a certain size 
    (256KB is the default I think) will be written prior to 
    their final destination.  Perhaps Jboss has a working 
    directory that needs to match as well.  Hmmmm.
    
    
    -----Original Message-----
    From: Gareth Williams [mailto:[EMAIL PROTECTED]
    Sent: Tuesday, April 19, 2005 7:31 AM
    To: Tomcat Users List
    Subject: RE: Can't multipart post large(ish) files via Tomcat 5.0.28
    
    Using commons-fileupload results in the same problem.  I 
    looked at the source, and the commons class FileUploadBase 
    gets its input stream from the HttpServletRequest (as you 
    would expect :) and hence I get the same errors/problematic 
    behaviour.  Whatever is going wrong would appear to be 
    either within Tomcat or within the underlying windows 
    socket tcp/ip stuff 
    
    I am surprised nobody else seems to have hit this upload 
    problem given the number of people using Tomcat5.0.28 + 
    Jboss 3.2.6.  Has anyone got any ideas?
    
    Cheers, Gareth
    
    ############################################################
    #########################
    Winner - e-Government excellence 2004. 
    Runner up - European Information Management awards 2004:
    - The Premier Project Award. 
    - B2C Commerce Project Award. 
    - CRM Project Award. 
    
    For more information visit us at www.voxgen.com
    
    ############################################################
    #########################
    Note:
    This message is for the named person's use only.  It may 
    contain confidential, proprietary or legally privileged 
    information.  No confidentiality or privilege is waived or 
    lost by any mistransmission.  If you receive this message 
    in error, please immediately delete it and all copies of it 
    from your system, destroy any hard copies of it and notify 
    the sender.  You must not, directly or indirectly, use, 
    disclose, distribute, print, or copy any part of this 
    message if you are not the intended recipient. Vox 
    Generation Limited and any of its subsidiaries each reserve 
    the right to monitor all e-mail communications through its networks.
    
    Any views expressed in this message are those of the 
    individual sender, except where the message states 
    otherwise and the sender is authorised to state them to be 
    the views of any such entity.
    
    Thank You.
    ############################################################
    #########################
    
    ############################################################
    #########################
    This e-mail message has been scanned for Viruses and 
    Content and cleared by NetIQ MailMarshal 
    ############################################################
    #########################
    
    ------------------------------------------------------------
    ---------
    To unsubscribe, e-mail: [EMAIL PROTECTED]
    For additional commands, e-mail: [EMAIL PROTECTED]
    
    
    
    
    
    ------------------------------------------------------------
    ---------
    To unsubscribe, e-mail: [EMAIL PROTECTED]
    For additional commands, e-mail: [EMAIL PROTECTED]
    
    

-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to