Skip to content

Commit fd3afa3

Browse files
docs(FileUploader): resolve upload issue in single file uploader story (#18937)
Co-authored-by: Preeti Bansal <146315451+preetibansalui@users.noreply.github.com>
1 parent c5899b9 commit fd3afa3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react/src/components/FileUploader/stories/drag-and-drop-single.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ const ExampleDropContainerApp = (props) => {
9292
}, rand + 1000);
9393
};
9494

95-
const onAddFilesButton = (event) => {
96-
const file = event.target.files;
95+
const onAddFilesButton = (event, { addedFiles }) => {
96+
const file = addedFiles;
9797

9898
const newFile = [
9999
{

0 commit comments

Comments
 (0)