-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmultiple_image_upload_with_realtime_time_selection.php
45 lines (38 loc) · 1.28 KB
/
multiple_image_upload_with_realtime_time_selection.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<div>
<div class="row" id="coba"></div>
</div>
<script type="text/javascript" src="{{asset('admin/js/spartan-multi-image-picker-min.js')}}"></script>
<script type="text/javascript">
$(function () {
$("#coba").spartanMultiImagePicker({
fieldName: 'identity_image[]',
maxCount: 5,
rowHeight: '120px',
groupClassName: 'col-md-2',
maxFileSize: '',
placeholderImage: {
image: '{{asset('admin/img/placeholder/img1.jpg')}}',
width: '100%'
},
dropFileLabel: "Drop Here",
onAddRow: function (index, file) {
},
onRenderedPreview: function (index) {
},
onRemoveRow: function (index) {
},
onExtensionErr: function (index, file) {
toastr.error('Please only input png or jpg type file', {
CloseButton: true,
ProgressBar: true
});
},
onSizeErr: function (index, file) {
toastr.error('File size too big', {
CloseButton: true,
ProgressBar: true
});
}
});
});
</script>