dosubot[bot] commented on issue #28252: URL: https://github.com/apache/superset/issues/28252#issuecomment-3015603932
<!-- Answer --> The code for the "Schemas Allowed for File Upload" field is in the frontend at `superset-frontend/src/features/databases/DatabaseModal/ExtraOptions.tsx`. It's implemented as a plain text `<Input />` (not a Select or tag input), and its value is managed by the `dbReducer` in `DatabaseModal/index.tsx`—which splits the input by commas and stores it as an array in the `extra` JSON for the database config. The field is only shown if file uploads are supported and enabled for the database. You can see the relevant code [here](https://github.com/apache/superset/blob/2e9939baf253e607a54722b1996baaf625e72133/superset-frontend/src/features/databases/DatabaseModal/ExtraOptions.tsx). There are no props like `disabled` or `readOnly` on the input, so the field should be editable as long as file upload is enabled and the database isn't managed externally. No event handlers block comma input. If you're unable to type commas or edit the field after it's populated, it's likely a UI bug or a state issue, not a deliberate restriction in the component code. The reducer logic does convert the input into an array, but this shouldn't prevent further editing as a comma-separated string unless something else in the UI is interfering [source](https://github.com/apache/superset/blob/2e9939baf253e607a54722b1996baaf625e72133/superset-frontend/src/features/databases/DatabaseModal/index.tsx). Possible solutions: - Double-check that "Allow file uploads to database" is enabled; otherwise, the field is hidden. - If the field is visible but not editable, look for any UI state or modal logic that could be disabling it (for example, if the database is managed externally, the modal disables the action button, but the field itself should still be editable). - If you confirm a UI bug (e.g., the field is visible but not accepting input), focus on the state management and input handler logic in `ExtraOptions.tsx` and `dbReducer` for debugging. Let me know if you need a more detailed walkthrough of the code or want to discuss a specific fix! <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/9395430f-ad0c-4719-a287-8a5038631727?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/9395430f-ad0c-4719-a287-8a5038631727?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/9395430f-ad0c-4719-a287-8a5038631727?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/9395430f-ad0c-4719-a287-8a5038631727?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/9395430f-ad0c-4719-a287-8a5038631727?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/9395430f-ad0c-4719-a287-8a5038631727?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/9395430f-ad0c-4719-a287-8a5038631727?feedback_type=other)</sup> [](https://go.dosu.dev/discord-bot) [! [Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/28252) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org