Skip to content

Commit

Permalink
fix: change file accept format (#9812)
Browse files Browse the repository at this point in the history
* fix: change file accept format

* fix: update file acceptance for dashboard file input
  • Loading branch information
shafin-deriv committed Sep 7, 2023
1 parent 0628aeb commit 9136091
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const Cards = observer(({ is_mobile, has_dashboard_strategies }: TCardProps) =>
<input
type='file'
ref={file_input_ref}
accept='.xml'
accept='application/xml, text/xml'
hidden
onChange={e => {
setIsFileSupported(handleFileChange(e, false));
Expand Down
2 changes: 1 addition & 1 deletion packages/bot-web-ui/src/components/load-modal/local.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const LocalComponent = observer(() => {
<input
type='file'
ref={file_input_ref}
accept='.xml'
accept='application/xml, text/xml'
style={{ display: 'none' }}
onChange={e => setIsFileSupported(handleFileChange(e, false))}
/>
Expand Down

0 comments on commit 9136091

Please sign in to comment.