api-manager
api-manager copied to clipboard
Add a file type restriction for operation policy definitions
Problem
As of now we only have a note dtating that we accept xml and j2 typed files as operation polciy definitions. But the UI and backend allows to upload any file type. It is nice to have a file type restriction here.
Solution
Add a file type restriction to disallow any file type other than j2 or xml.
Affected Component
APIM
Version
4.3.0
Implementation
No response
Related Issues
No response
Suggested Labels
No response
Fixed via - https://github.com/wso2/apim-apps/pull/634
Backend validation - https://github.com/wso2/carbon-apimgt/pull/12371