<af:inputFile> Update File Popup Window Does Not Dismiss

(Doc ID 1570987.1)

Last updated on FEBRUARY 02, 2018

Applies to:

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


An ADF file upload component <af:inputFile> is used  in a portletized jspx file as shown in the following snippet of source code:

    <af:document id="d1">
      <af:form id="f1" usesUpload="true">
        <af:inputFile label="File" id="if1"/>
        <af:commandButton text="Upload" id="cb1"/>

The web.xml has declared upload file size limit as follows  (1 Mb).


When the portlet application is deployed into WebCenter Portal managed server, such as WC_Portlet, the update file popup window does not dismiss after file uploading fails due to file size limit.

The issue can be reproduced at will with steps:

Deploy a test case project onto WC_Portlet
Open browser, go to /<webapp_content>/info to show WSRP Producer Test Page. As per the following screen shot.


Click "run as servlet"
Click "Browse" to choose file to be uploaded. Choose one file larger than size (1M bytes)
Click button "Upload" , "Error: The file upload failed.The file could not be uploaded because it is too large.. " will be returned. As per the following screen shot.

Click button "Update..." which is on the right side of file input box and show update file dialog box.
Browse and select a file, Click "OK", the dialog box cannot dismiss. As per the following screen shot.

When the application is deployed on non-WebCenter Portal Managed server, such as a standard JRF enabled Weblogic server, the issue is not be reproduced.




Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms