Skip to Content
0
Nov 12, 2009 at 04:44 AM

error in upload file

19 Views

Hi all,

I am getting an error while uploading the file.

Please look at the below code.

Action class code is as :

FormFile myFile = myForm.getMyFile();
		log.debug("Z_UploadFileAction doPerform begin 3");
		String contentType = myFile.getContentType();
		log.debug("Z_UploadFileAction doPerform begin 4");
*		String fileName = myFile.getFileName();*
		log.debug("Z_UploadFileAction doPerform begin 5")

The error is at filename = myfile.getFileName();

and the jsp contains

javascript as :

function submit_upload() {
	var filename = document.getElementById('myFile').value;
 form_input().location.href="<isa:webappsURL name="b2b/uploadfile.do"/>";
//form_input().location.href=rewriteURL("b2b/uploadfile.do");

var filename pick the exact path of fiel.

log file says :

[(J2EE7146800)ID1143844150DB11722523579401193262End|?]Z_UploadFileAction doPerform begin 3 
Nov 12, 2009 6:35:37 AM,685 SAPEngine_Application_Thread[impl:3]_27 Error bbcom.meiranova.eshop.isacore.action.order.Z_UploadFileAction [(J2EE7146800)ID1143844150DB11722523579401193262End|system.servletDifficulties] Error in action

Please help me to resolve this problem.

Regards,

Devender V