Re: File upload using WebWork

Hani Suleiman <[email protected]> Mon, 3 May 2004 21:19:21 -0400
Newsgroups gmane.comp.java.open-symphony.devel
Message-ID <[email protected]>
Check that you aren't uploading attachments larger than the allowed  
size. You can modify the maximum size allowed by changing a property in  
webwork.properties (which I don't remember offhand, the default is  
something like 2mb).

On May 3, 2004, at 9:19 AM, Markus Wallner wrote:

> Hi!
>
> I would like to use the integrated MultiPartRequest-Servlet from  
> WebWork
> (v.1.4).
>
> I followed the instructions
> (http://www.opensymphony.com/webwork/cookbook/ 
> Handling_file_uploads.html)
> and copied the sourcecode given there into my application.
>
> First, I would like to say that the method multiwrapper.hasErrors() ...
>
> if (multiWrapper.hasErrors()) {
>   Collection errors = multiWrapper.getErrors();
>   Iterator i = errors.iterator();
>   while (i.hasNext()) {
>     addActionError((String) i.next());
>   }
>   return ERROR;
> }
>
> does NOT exist.
>
> Second, it seems like I can only upload certain files.
> For example, TXT or ZIP files work, but not MP3 files.
>
> What's the reason behind that?
>
> Thanks in advance,
> - Markus
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: Oracle 10g
> Get certified on the hottest thing ever to hit the market... Oracle  
> 10g.
> Take an Oracle 10g class now, and we'll give you the exam FREE.
> http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> _______________________________________________
> Opensymphony-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-developers
>



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click