, 2003 4:48 PM
To: 'Struts Users Mailing List'
Subject: RE: File Upload error
Make sure you do not have another file upload jar in your classpath.
Where are you hosting your app, what OS?
Alex.
> -Original Message-
> From: Erez Efrati [mailto:[EMAIL PROTECTED]
> Sent:
Make sure you do not have another file upload jar in your classpath.
Where are you hosting your app, what OS?
Alex.
> -Original Message-
> From: Erez Efrati [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 21, 2003 11:14 AM
> To: 'Struts Users Mailing List'
Hi,
I am trying to do file uploading of several files and I keep getting the
following error:
java.lang.NoSuchMethodError:
org.apache.commons.fileupload.MultipartStream.setHeaderEncoding(Ljava/la
ng/String;)V
I am using JBoss/Tomcat 4.1.24. The upload struts sample works just fine
under 4.1.27 -
Hi Doug,
I don't know if you've already found solution to your problem but what you can do is
to put a form validation in your ActionForm that handles that, here is what I did for
mine (it also handles the case if a file is empty, saying with a 0 Kb size) :
/**
* Validate the propert
Hello,
There is a section of our app that allows a user to upload a file as an
attachment. It is optional to upload a file, but other information on
the page is mandatory.
If no file is attached, the application hangs before executing the
Action that processes the form. This only occurrs whe
Hello,
There is a section of our app that allows a user to upload a file as an
attachment. It is optional to upload a file, but other information on
the page is mandatory.
If no file is attached, the application hangs before executing the
Action that processes the form. This only occurrs when
6 matches
Mail list logo