Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file input support request. #160

Closed
faststare opened this issue Apr 13, 2017 · 4 comments
Closed

file input support request. #160

faststare opened this issue Apr 13, 2017 · 4 comments
Assignees

Comments

@faststare
Copy link

Please kindly support for file input save as and open file input. tia

@marcusasplund
Copy link
Contributor

It is possible to achieve with something like this:

    <label for="files" class="button file-label">Upload
    </label>
    <input
      onchange="yourUploadHandler(e)"
      accept=".csv, .doc, image/*"
      class="hidden"
      id="files"
      type="file" />
.file-label {
  width: 15rem;
}
input[type=file].hidden {
  visibility: hidden;
  width: 15rem;
  margin-left: -15rem;
}

Heads up; do not wrap the label around the input, this will make IE (at least Edge) to go bonkers.

@cjpatoilo
Copy link
Member

@marcusasplund it's very impressive! Okay for you if I add this feature in the next version?

@cjpatoilo cjpatoilo self-assigned this May 20, 2020
@marcusasplund
Copy link
Contributor

Yes, of course!

@cjpatoilo
Copy link
Member

@faststare Inspire by @marcusasplund, I add this feature #249
Now I will close this issue.

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

No branches or pull requests

3 participants