xxxxxxxxxx
1
<div class="container my-4">
2
<p>
3
<strong>You can use to upload one or more files (photos, documents or any other file type) from local storage.
4
See the examples.</strong>
5
</p>
6
7
<p>
8
Detailed documentation and more examples you can find in our
9
<a href="https://mdbootstrap.com/docs/standard/layout/horizontal-alignment/" target="_blank"><strong>Bootstrap
10
Horizontal alignment Docs</strong></a>
11
</p>
12
<p>
13
If you need a more advanced version check out the
14
<a href="https://mdbootstrap.com/docs/standard/layout/horizontal-alignment/" target="_blank"
15
class="text-danger"><strong>File upload plugin</strong></a>
16
17
18
</p>
19
20
<hr />
21
22
<p class="font-weight-bold">Basic example</p>
23
24
<p>
25
The file input is the most gnarly of the bunch and requires additional JavaScript if you’d like to hook them up
26
with functional Choose file… and selected file name text
27
</p>
28
29
<div class="border p-5">
30
<!-- Copy this code to have a working example -->
31
<div class="d-flex justify-content-center">
32
<div>
33
<label class="form-label" for="customFile">Default file input example</label>
34
<input type="file" class="form-control" id="customFile" />
35
36
</div>
37
</div>
38
<!--/ Copy this code to have a working example -->
39
</div>
40
41
<p class="font-weight-bold mt-3">File input sizing</p>
42
43
<p>
44
You may also choose from small and large file inputs to match our similarly sized text inputs.
45
</p>
46
47
<div class="border p-5">
48
<!-- Copy this code to have a working example -->
49
<div class="d-flex justify-content-center">
50
<div>
51
<label for="formFileSm" class="form-label">Small file input example</label>
52
<input class="form-control form-control-sm" id="formFileSm" type="file" />
53
<label for="formFileLg" class="form-label">Large file input example</label>
54
<input class="form-control form-control-lg" id="formFileLg" type="file" />
55
56
</div>
57
</div>
58
<!--/ Copy this code to have a working example -->
59
</div>
60
61
62
63
</div>
1
1
1
1
Console errors: 0