This is an automated email from the ASF dual-hosted git repository.

beto pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new cd1b379bdf fix: accept only JSON credentials (#22040)
cd1b379bdf is described below

commit cd1b379bdf323f78c2e7d574525a55898c920942
Author: Beto Dealmeida <[email protected]>
AuthorDate: Mon Nov 7 12:42:33 2022 -0800

    fix: accept only JSON credentials (#22040)
---
 .../database/DatabaseModal/DatabaseConnectionForm/EncryptedField.tsx     | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm/EncryptedField.tsx
 
b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm/EncryptedField.tsx
index 2369b4fe5c..5870345b44 100644
--- 
a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm/EncryptedField.tsx
+++ 
b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm/EncryptedField.tsx
@@ -168,6 +168,7 @@ export const EncryptedField = ({
 
             <input
               id="selectedFile"
+              accept=".json"
               className="input-upload"
               type="file"
               onChange={async event => {

Reply via email to