Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Handling file input #2

Closed
Closed
@muan

Description

@muan

Attach files via drag and drop or file input.

The element itself doesn't seem to care about file inputs. In dotcom we use a custom behavior that calls fileattachment.attach(files). I think we can add some simple documentation for this, but I wonder what you all think about having the element listening on file input change instead?

It is not too much to add the custom hook, but considering an actual file input would be needed for accessibility, I think it'd be good if it comes by default.

cc @github/web-systems

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions