You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ma...@apache.org on 2024/03/11 15:59:17 UTC
(camel-karavan) branch main updated: #1168 - Enable java class file upload (#1169)
This is an automated email from the ASF dual-hosted git repository.
marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git
The following commit(s) were added to refs/heads/main by this push:
new 35771968 #1168 - Enable java class file upload (#1169)
35771968 is described below
commit 35771968612e8f60227396b79a1963542b329aa2
Author: Damir Palinic <da...@palinic.com>
AuthorDate: Mon Mar 11 16:59:12 2024 +0100
#1168 - Enable java class file upload (#1169)
---
karavan-app/src/main/webui/src/project/files/UploadFileModal.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/karavan-app/src/main/webui/src/project/files/UploadFileModal.tsx b/karavan-app/src/main/webui/src/project/files/UploadFileModal.tsx
index f68f423b..2a69e161 100644
--- a/karavan-app/src/main/webui/src/project/files/UploadFileModal.tsx
+++ b/karavan-app/src/main/webui/src/project/files/UploadFileModal.tsx
@@ -130,7 +130,7 @@ export function UploadFileModal(props: Props) {
const fileNotUploaded = (filename === '' || data === '');
const accept : Accept = type === 'integration'
? {'application/yaml': ['.yaml', '.yml']}
- : {'application/yaml': ['.yaml', '.yml'], 'application/json': ['.json'], 'plain/text': ['.sql']};
+ : {'application/yaml': ['.yaml', '.yml'], 'application/json': ['.json'], 'plain/text': ['.sql'], 'text/x-java': ['.java']};
return (
<Modal
title="Upload"