Skip to content

Commit

Permalink
Update code example for getFiles (#4189)
Browse files Browse the repository at this point in the history
  • Loading branch information
timodwhit authored Nov 4, 2022
1 parent dfcff87 commit 473796b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/docs/core.md
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ Get an array of all [File Objects][] that have been added to Uppy.
```js
import prettierBytes from '@transloadit/prettier-bytes'

const items = uppy.getFiles().map(() => `<li>${file.name} - ${prettierBytes(file.size)}</li>`).join('')
const items = uppy.getFiles().map((file) => `<li>${file.name} - ${prettierBytes(file.size)}</li>`).join('')
document.querySelector('.file-list').innerHTML = `<ul>${items}</ul>`
```

Expand Down

0 comments on commit 473796b

Please sign in to comment.