Skip to content

Commit

Permalink
Directory attribute fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MassiminoilTrace committed Aug 15, 2023
1 parent ba9a69e commit 74e4ef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs-src/0.4/en/reference/user_input.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Submitted! UiEvent { data: FormData { value: "", values: {"age": "very old", "da
## Handling files
You can insert a file picker by using an input element e.g. `input {"type":"file"}`. This element supports the `multiple` attribute, to let you pick more files at the same time. You can select an entire folder by adding the `directory` attribute.

> Dioxus will map this attribute to browser specific attributes. Because there is no standardized way to allow multiple files to be uploaded.
> Dioxus will map this attribute to browser specific attributes. Because there is no standardized way to allow a directory to be selected.
`type` is a Rust keyword, so when specifying the type of the input field, you have to write it as `r#type:"file"`.

Expand Down

0 comments on commit 74e4ef8

Please sign in to comment.