osbragon
osbragon

Reputation: 113

krajee bootstrap file input disable/remove upload icon preview thumbnail

I need to disable upload button. It's possible?

enter image description here

Upvotes: 5

Views: 14849

Answers (5)

José A. Alonso
José A. Alonso

Reputation: 11

Maybe it's not the ideal solution but it worked for me. Add this style

.kv-file-upload {
   display:none;
}

and button is gone

Upvotes: -1

Niraj Kumar
Niraj Kumar

Reputation: 179

Try out below code

showClose: false,
showCaption: false,
showBrowse: false,
showUpload:false,
showUploadedThumbs: false,
showPreview: true,

Upvotes: 0

nippa
nippa

Reputation: 171

here may be this can help you,

fileActionSettings: {
                        showRemove: false,
                        showUpload: false,
                        showZoom: true,
                        showDrag: false,},

Upvotes: 17

Paul M
Paul M

Reputation: 451

Similar to @lyhoshva,

    $("#attachments").fileinput({
        'showUpload': false
    });

Krajee Documentation, see block 2a

Upvotes: 1

lyhoshva
lyhoshva

Reputation: 111

Set

'pluginOptions' => [
    'showRemove' => false,
]

or, if you use js

"pluginOptions" : {
    "showRemove" : false
}

Upvotes: 1

Related Questions