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

Where the file name appears #65

Open
ZhangChengLin opened this issue Feb 16, 2020 · 4 comments
Open

Where the file name appears #65

ZhangChengLin opened this issue Feb 16, 2020 · 4 comments

Comments

@ZhangChengLin
Copy link

<div class="custom-file">
  <input class="custom-file-input qrcode" id="qrcode" type="file">
  <label class="custom-file-label" for="qrcode" data-browse="提交">
    qrcode<i class="ml-1 fas fa-qrcode">no this upload file name,file name is at label.innerHTML</i>
  </label>
</div>

bootstrap 4.4.1

The file name should be blank for all elements under the label element.

@Johann-S
Copy link
Owner

Hi @ZhangChengLin,

I don't understand what's your issue 😟
Can you add a live example please ?

@assadnazar
Copy link

assadnazar commented Mar 22, 2020

Hi @ZhangChengLin,

I don't understand what's your issue
Can you add a live example please ?

He must be asking about filenames which are not being shown when you select the file from file browser.

@ZhangChengLin,
You need to add the js file and then initialize it as follows:

bsCustomFileInput.init();

@rdetert
Copy link

rdetert commented Apr 7, 2020

I was having this problem too when linking to the external CDN file with ad blockers installed. I solved it by installing the packages locally.

@AizenSousuke
Copy link

Is this issue resolved? I've tried it and the file name does not show too

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

No branches or pull requests

5 participants