File upload using WebWork

"Markus Wallner" <[email protected]> Mon, 3 May 2004 15:19:56 +0200
Newsgroups gmane.comp.java.open-symphony.devel
Message-ID <001301c43111$53d06d70$0264a8c0@at>
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