I have this Bootstrap file input plugin which can be found here: http://plugins.krajee.com/file-basic-usage-demo
This plugin looks like as below:
Now what I want to do is to remove this upload button of this plugin. Does anybody know how to do this? Or does anyone already tried?
You can just use these following snippets
$("#your-input-type-file-ID").fileinput({
'showUpload': false
});
Finally found the answer, by simply editing this code here from fileinput.js
:
$.fn.fileinput.defaults = {
language: 'en',
showCaption: true,
showPreview: true,
showRemove: true,
showUpload: false, // <------ just set this from true to false
showCancel: true,
showUploadedThumbs: true,
// many more below
};
You can do it in a simple way also simply write in an attribute data-show-upload="false"
and it I'll work too!!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With