3 Replies Latest reply: Apr 13, 2014 5:52 AM by san-717 RSS

    how to block .exe file when uploading

    san-717

      Hi all,

       

      I'm working in iRecruitment external site. here standard oracle resume upload allows .exe file if it renames to any other valid extensions like .txt, .doc or .docx.

       

      I want to know is it anyway to block exe files even when renamed by controller extension.

       

      EBS version:  12.1.3

       

      Thanks in Advance,

      SAN

        • 1. Re: how to block .exe file when uploading
          san-717

          Any suggestions please.

          • 2. Re: how to block .exe file when uploading
            2620472

            Hi Sandeep,

             

            I too got the same requirement in irec

            There is no profile option to set the upload file types..but you can send an error on top of the page. when user upload files with .exe

             

            CO :-

             

            PFR :-

            public void upLoadFile(OAPageContext pageContext,OAWebBean webBean)

            {

            String filePath = "D:\path";

            System.out.println("Default File Path---->"+filePath);

             

            String fileUrl = null;

            try

            {

              DataObject fileUploadData =  pageContext.getNamedDataObject("MessageFileUpload");

             

            //FileUploading is my MessageFileUpload Bean Id

              if(fileUploadData!=null)

              {

               String uFileName = (String)fileUploadData.selectValue(null, "UPLOAD_FILE_NAME");

             

            check if the file name is having .exe using substr function..then throw error if you find anything...

            let me know if any issues

             

             

            Regards,

            Goutham Ippili.

            • 3. Re: how to block .exe file when uploading
              san-717

              Hi Goutham,

               

              checking file extension is working fine in standard itself. But my requirement is to block after renaming .exe to .doc manually.

               

              Any suggestion for EBS R12.1.3. This is working in ADF since it supports java 7.

               

              Thanks,

              SAN