Skip to content

File Input #1240

Closed
Closed

Description

@claviska

What we're building

A file input component that replaces <input type="file"> with a more visual, drag and drop friendly file uploader.

Visual inspiration

Image

What's out of scope

  • Communicating with backend services
  • Showing upload progress, as it requires backend communication to reliably gauge progress for large files
  • Pausing and resuming, as it requires backend communication

Note: the file input will work similarly to the native <input type="file">, so you can submit it with a regular form via enctype="multipart/form-data" or serialize it into FormData. This gives you a mechanism to hook into your server and show upload progress, e.g. using fetch() instead of normal form submission.


Activity

  1. self-assigned this
    on Jul 28, 2025
  2. added
    componentsComponent-related issues typically affecting multiple components
    stretch goalRepresents a task linked to a stretch goal promise from the WA Kickstarter.
    on Jul 28, 2025
  3. changed the title [-]Add `<wa-file-input>`[/-] [+]File Input[/+] on Aug 5, 2025
  4. omnifides commented on Aug 14, 2025

    @omnifides
    Contributor

    re: design, taking cues from the inspiration above, I'm envisioning something like this:

    Image

    With appearance and size support to match our other inputs:

    Image

    For appearance, I'd say this should affect the drop zone but not the listed files. Open to arguments, though! 🤺

    A rough pen for the styles: https://codepen.io/omnifides/pen/bNVYxqv

  5. schilchSICKAG commented on Sep 11, 2025

    @schilchSICKAG
  6. added this to the milestone on Oct 13, 2025
  7. removed this from the milestone on Nov 19, 2025
  8. frozenfrank commented on Nov 29, 2025

    @frozenfrank

    @claviska Any update on timelines for this component? Really looking forward to using it to read some files from the local device for my project.

  9. piotrsynowiec commented on Jan 17, 2026

    @piotrsynowiec

    @claviska I would love to use that component as well.

  10. removed
    stretch goalRepresents a task linked to a stretch goal promise from the WA Kickstarter.
    on Feb 17, 2026
  11. claviska commented on Feb 17, 2026

    @claviska
    MemberAuthor

    The <wa-file-input> component is available here: https://webawesome.com/docs/components/file-input

  12. marin-johnson-dev commented on Mar 13, 2026

    @marin-johnson-dev

    Does this have support for the appearance attributre yet? I would like to have the inside of the drop zone filled a light gray.

  13. claviska commented on Mar 13, 2026

    @claviska
    MemberAuthor

    @marin-johnson-dev not at the moment. You can use CSS Parts as a workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

WA ProFor consideration in WA ProcomponentsComponent-related issues typically affecting multiple components

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions