Skip to content

Commit

Permalink
Fix file input
Browse files Browse the repository at this point in the history
Regression from All-Hands-AI#5287
  • Loading branch information
SmartManoj committed Dec 8, 2024
1 parent ad006c6 commit 5cc8dd6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions frontend/src/components/features/file-explorer/file-explorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,19 @@ export function FileExplorer({ isOpen, onToggle }: FileExplorerProps) {
/>
)}
</div>
<input
data-testid="file-input"
type="file"
multiple
ref={fileInputRef}
style={{ display: "none" }}
onChange={(event) => {
const { files: selectedFiles } = event.target;
if (selectedFiles && selectedFiles.length > 0) {
uploadFileData(selectedFiles);
}
}}
/>
</div>
</div>
);
Expand Down

0 comments on commit 5cc8dd6

Please sign in to comment.