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

showBrowse: false removes file input field #1226

Closed
1 of 9 tasks
wowpages opened this issue Apr 22, 2018 · 1 comment
Closed
1 of 9 tasks

showBrowse: false removes file input field #1226

wowpages opened this issue Apr 22, 2018 · 1 comment
Labels

Comments

@wowpages
Copy link

wowpages commented Apr 22, 2018

Prerequisites

  • [x ] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
  • [x ] The issue still exists against the latest master branch of bootstrap-fileinput.
  • [ x] This is not an usage question. I confirm having read the plugin documentation and demos.
  • This is not a general programming / coding question. (Those should be directed to the webtips Q & A forum).
  • [ x] I have attempted to find the simplest possible steps to reproduce the issue.
  • I have included a failing test as a pull request (Optional).

Steps to reproduce the issue

  1. set option showBrowse to false

Expected behavior and actual behavior

When I follow those steps, I see...
the file input field is not added, because it is included within the browse button, so a file cannot be uploaded

<div tabindex="500" class="btn btn-primary btn-file"><i class="fa fa-folder-open"></i> <input id="avatar-1" name="avatar-1" type="file"></div>

I was expecting...
the file input field to be added

Environment

Browsers

  • [ x] Google Chrome
  • Mozilla Firefox
  • Internet Explorer
  • Safari

Operating System

  • Windows
  • [x ] Mac OS X
  • Linux
  • Mobile

Libraries

  • jQuery version:
  • bootstrap-fileinput version:

Isolating the problem

@kartik-v
Copy link
Owner

Fixed via above commit.

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

No branches or pull requests

2 participants