bs-custom-file-input
bs-custom-file-input copied to clipboard
Where the file name appears
<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.
Hi @zhangchenglin,
I don't understand what's your issue 😟 Can you add a live example please ?
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();
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.
Is this issue resolved? I've tried it and the file name does not show too