Hi Guys,
I have a requirement to restrict importing outlook(.msg) files if it is having attachments.I am using Apache POI library to read the .msg file like below.
MAPIMessage msg = new MAPIMessage("Here i am passing the path where the file is importing");
AttachmentChunks attachments[] = msg.getAttachmentFiles();
System.out.println("length::::::" +attachments.length);
if(attachments.length > 0){
System.out.println("inside if::::::");
setReturnError("MSG_ERROR_MSG_FILE_IMPORT", null, null);
WebComponentErrorService.getService().setNonFatalError(this, "MSG_ERROR_MSG_FILE_IMPORT", null);
I am getting the importing documents path and name from the super method getUploadesFilesFromRequest().
For instance the path i am passing is C:/Documentum/Data/sample.msg. I have deployed the above code in dev app server and the code is searching for the path in the app server instead of searching it in the user system who is importing the document and throwing an exception "File Not Found Exception" .Please provide your valuable suggestions.
Thanks in Advance
Praveen Kumar Reddy