Skip to content

Commit 7e30e29

Browse files
authored
docs: add reference to applyAccept from upload()
1 parent 6bb14e8 commit 7e30e29

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/user-event/api-utility.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ upload(
149149

150150
Change a file input as if a user clicked it and selected files in the resulting
151151
file upload dialog.
152+
Files that don't match an `accept` property will be automatically discarded,
153+
unless [`applyAccept`](options.mdx#applyaccept) is set to `false`.
152154

153155
```jsx
154156
test('upload file', async () => {

0 commit comments

Comments
 (0)