[API] KrageeAPI - FileUploadUI

BBANG-JUN·2020년 8월 27일
0

API

목록 보기
2/4
post-thumbnail

Kragee

참고 링크

메인 : 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

JSP

<div class="file-loading">

    	<input id="input-res-1" name="input-res-1[]" type="file" multiple>

</div>

JS

$(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;
            }
        }
    });
profile
🔥 머릿속으로 생각하지만 말고, 행동으로 보여줘

0개의 댓글