Skip to content

Commit 8fd1ec4

Browse files
committed
Update onFilesChange to return files according to getBase64 prop
1 parent 52f1fcd commit 8fd1ec4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FileUpload.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ function FileUpload(props) {
328328
}
329329

330330
if (onFilesChange) {
331-
onFilesChange([ ...files ])
331+
onFilesChange(getBase64 ? files : originalFiles)
332332
onContextReady(getContext())
333333
}
334334
// eslint-disable-next-line

0 commit comments

Comments
 (0)