General J2EE: uploading a file using multipartrequest class in struts
- Posted by: vaidhyanathan badri
- Posted on: March 30 2005 08:11 EST
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
- uploading a file using multipartrequest class in struts by Irakli Nadareishvili on March 30 2005 08:33 EST
- uploading a file using multipartrequest class in struts by Anil Kumar Sadineni on March 30 2005 16:52 EST
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
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.