메인 : https://plugins.krajee.com/file-input
option : https://plugins.krajee.com/file-input/plugin-options#top
fileEvent : https://plugins.krajee.com/file-input/plugin-events#file-events
method : https://plugins.krajee.com/file-input/plugin-methods#top
Demo : https://plugins.krajee.com/file-input/demo#basic-usage
<div class="file-loading">
<input id="input-res-1" name="input-res-1[]" type="file" multiple>
</div>
$(document).ready(function() {
$("#input-res-1").fileinput({
uploadUrl: "/egovframework-all-in-one/jfile/processUpload.do",
enableResumableUpload: true,
initialPreviewAsData: true,
validataInitialCount: false,
uploadExtraData: {
Filename : "dog1.jpg",
Upload : "Submit Query",
uploadMode : "db",
beanId : null
},
maxFileCount: 3,
theme: 'fas',
deleteUrl: '/site/file-delete',
fileActionSettings: {
showZoom: function(config) {
if (config.type === 'pdf' || config.type === 'image') {
return true;
}
return false;
}
}
});