General J2EE: uploading a file using multipartrequest class in struts

  1. hi,
    i'm getting an error mesage when i upload a file using multipartrequest class in struts.i'm getting the following error message:-
    Corrupt form data: premature ending

    pls anybody help asap
  2. Try replacing commons-upload.jar of your App Server (JBoss?) with the latest from the Jakarta site.

    Yes, even if you have your own version in your lib - still replace the server version. That's a known problem with some versions of JBoss. Maybe true for other ASes too
  3. Hi,

    I am just guessing. Please try to upload only the file not the form data(other hidden variable and other values) along with that. It may work.

    Anil Sadineni.