Okta Access Gateway Error During File Upload and Download
Last Updated:
Overview
File upload and download failures occur within a protected application configured behind Okta Access Gateway (OAG) due to the HTTP request exceeding the allowed size. To resolve this issue, set the maximum file upload size to zero in the OAG settings. When this issue occurs, the following error appears in the browser console logs:
413 (request entity too large)
Applies To
- Okta Identity Engine (OIE)
- Okta Classic Engine
- Okta Access Gateway (OAG)
- Files
Cause
The HTTP request exceeds the application's configured size limit, resulting in a 413 error. OAG does not impose native restrictions on file size.
Solution
How is the maximum file upload size configured in Okta Access Gateway?
Modify the application settings in Okta Access Gateway to allow unlimited file upload sizes by navigating to the application settings and adjusting the maximum file upload size.
- Navigate to the OAG settings for the affected application.
- Set the maximum file upload size value to 0 to configure the upload size as unlimited.
- Test the file upload and download functionality to confirm the issue is resolved.
