Skip to content

Commit 160a1bd

Browse files
committed
fix(examples): fix uplad example
1 parent 3f06393 commit 160a1bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/upload/demo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ window.addEventListener('DOMContentLoaded', function () {
77
};
88

99
document.querySelector('input').addEventListener('change', (event) => {
10-
const files = event.target.files;
10+
const files = event.target.files[0];
1111
const token = {};
1212
const cancel = document.getElementById('cancel');
1313
const pause = document.getElementById('pause');

0 commit comments

Comments
 (0)