Validate file upload to create custom action

For validating a file type, I would use a custom form.

When users upload a file, you can extract the file type from the URL of the file using JavaScript. Then you can validate using the result of the JavaScript column.

For the JSON part, I’m not sure what you mean. What exact columns/flows are you using to parse the info from the file? Can you provide some screenshots or a video?