xxxxxxxxxx
1
<div class="container my-4">
2
3
<p class="font-weight-bold">An example of bootstrap file component. Easy to implement and customize. Examples of basic and advanced usage.</p>
4
5
<p><strong>Detailed documentation and more examples you can find in our <a href="https://mdbootstrap.com/docs/jquery/forms/file-input/"
6
target="_blank">Bootstrap File Input Docs</a> </p>
7
8
<hr>
9
10
<p class="font-weight-bold">Basic example</p>
11
12
<p class="note note-info"><strong>Note info:</strong> If you need more advanced functionalities, have a look at our
13
<a href="https://mdbootstrap.com/plugins/jquery/file-upload/">Drag and drop file upload plugin</a>.
14
</p>
15
16
<div class="row">
17
18
<!--Grid column-->
19
<div class="col-md-6 mb-4">
20
21
<!--Title-->
22
<h2 class="">
23
Default file input
24
</h2>
25
26
<!--Description-->
27
<p>Default styling for Bootstrap File Input component</p>
28
29
<!-- Description -->
30
<p>The file input is the most gnarly of the bunch and requires additional JavaScript if you’d like to hook them up
31
with functional Choose file… and selected file name text.
32
</p>
33
34
<!--Section: Live preview-->
35
<section class="section-preview">
36
37
<div class="input-group my-3">
38
<div class="input-group-prepend">
39
<span class="input-group-text" id="inputGroupFileAddon01">Upload</span>
40
</div>
41
<div class="custom-file">
42
<input type="file" class="custom-file-input" id="inputGroupFile01" aria-describedby="inputGroupFileAddon01">
43
<label class="custom-file-label" for="inputGroupFile01">Choose file</label>
44
</div>
45
</div>
46
47
</section>
48
<!--Section: Live preview-->
49
50
</div>
51
<!--Grid column-->
52
53
<!--Grid column-->
54
<div class="col-md-6 mb-md-0 mb-4">
55
56
<!--Title-->
57
<h2 class="">
58
Material file input
59
<a href="https://mdbootstrap.com/products/jquery-ui-kit/" target="_blank" class="btn btn-danger btn-sm waves-effect waves-light" role="button">MDB
60
Pro component
61
<i class="far fa-gem ml-1"></i>
62
</a>
63
</h2>
64
65
<!--Description-->
66
<p>Material Design styling for Bootstrap File Input component</p>
67
68
<!--Section: Live preview-->
69
<section class="section-preview">
70
71
<form class="md-form my-3">
72
<div class="file-field">
73
<div class="btn btn-primary btn-sm float-left waves-effect waves-light">
74
<span>Choose file</span>
75
<input type="file">
76
</div>
77
<div class="file-path-wrapper">
78
<input class="file-path validate" type="text" placeholder="Upload your file">
79
</div>
80
</div>
81
</form>
82
83
</section>
84
<!--Section: Live preview-->
85
86
</div>
87
<!--Grid column-->
88
89
</div>
90
91
</div>
1
1
1
1
Console errors: 0