Skip to content

Improve documentation for input type=file #86

Closed
@bvaughn

Description

@bvaughn

This issue was originally reported by @kevinsimper via facebook/react/issues/3981

Nowhere on the react documentation is there a reference on how to handle <input type="file"/>

It is a speciel field that can not be serialized, and I think it deserve some kind of mention, maybe just a link to some other resource or if it is just like a normal input, just saying that.

I think it might be worth mentioning eg you can't actually programmatically set the value of a file input which is a pretty big deal- it means you're more susceptible to issues with reconciliation. You can only read. You also have to read from node.files which is just how those work even outside React, but still might be worth mentioning.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions