Skip to Main Content

Application Development Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Restrict the exe file to upload in wcc using rules

Sanjeev-OFMJul 24 2019 — edited Jul 24 2019

Hello Experts,

Using the WCC version 12.2.1.3.0 and I need to put some restriction to upload the filetype. I have create a rule on checkin event so that I can restrict other file type to upload in WCC system.

Script is working fine but having two issues in that please suggest how to solve it.

Script:

Code:{

<$trace("#all", "#console")$>

<$strFileName=strReplace(primaryFile,".",",")$>

<$trace(strFileName, "#console")$>

<$exec rsMakeFromString("rsTempFile",strFileName,"ext")$>

<$exec rsSetRow("rsTempFile", rsTempFile.#numRows-1)$>

<$if strTrimWs(rsTempFile.ext) like "doc|docx|pdf|rtf|xls|xlsx|xlsb|xlsm|bmp|gif|jpg|png"$>

<$else$>

<$abortToErrorPage("\n\nKindly upload the files in given format (doc,docx,pdf,rtf,xls,xlsx,xlsb,xlsm,bmp,gif,jpg,png) only, others are not allowed.")$>

<$endif$>

}

Issue-1:

Remove the highlighted message to show user friendly as this message is not user friendly.

ErrorMessage.JPG

Issue-2:

When uploading the files using the Checkin Universal Service from SOAP UI able to upload the exe files also. how to control that using rules.

Thanks

Sanjeev

Comments
Post Details
Added on Jul 24 2019
3 comments
302 views