My Oracle Support Banner

How To Display a Customized Error Message When Uploading Restricted Document Types ? (Doc ID 2594660.1)

Last updated on OCTOBER 01, 2022

Applies to:

Oracle WebCenter Portal - Version 12.2.1.3.0 and later
Information in this document applies to any platform.

Goal

When uploading documents in WebCenter Portal using the Content Manager Task Flow you can restrict the file types allowed for upload using a content server rule.

If a user attempts to upload a restricted file the following error message is displayed:

Error Error executing WebCenter Content service 'CHECKIN_NEW': The content item was not successfully checked in. csDpSideEffects(FileUploadTypes) Error evaluating server script expression. Uploaded file type(s) not permitted. Only the following file types are permitted for upload: Word, Excel, PowerPoint, PDF, CSV (comma-separated values) and Text. (status code: -1, message key: !csUnableToCheckInContentItem!csDpSideEffects,FileUploadTypes!csDynHTMLServerScriptEvalError!$ Uploaded file type(s) not permitted. Only the following file types are permitted for upload: Word, Excel, PowerPoint, PDF, CSV (comma-separated values) and Text.)


 

 

The goal of this document is to show how to display a customized Error Message when uploading restricted document types.

For example, instead of the above error you might want to display a simplified error message like the one bellow:

Error: The content item was not successfully checked in. Uploaded file type(s) not permitted. Only the following file types are permitted for upload: Word, Excel, PowerPoint, PDF, CSV (comma-separated values) and Text.

 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.