Skip to content

File Input Fields Not Supported #374

Closed
@zakcrawford

Description

@zakcrawford

I ran into a situation where I wanted to be able to add data-remote="true" to a file input field. Turns out this doesn't work by default.

I made it work, here's a link to the gist: https://gist.github.com/zakcrawford/b05b1399208fcb257ff9

This will only work in browsers that support FormData();
(IE 10+, modern version of gecko and webkit)

Not sure if this is something that people are interested in, but if someone wants to create a way to do this that won't break in old browsers feel free to use my code as a starting point. The current test suite passed with my change, but I did not add any new tests.

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