<#if fileTypes?has_content&&'image'=fileTypes>
    <#assign accept=' accept="image/*"'/>
<#elseif fileTypes?has_content&&'video'=fileTypes>
    <#assign accept=' accept="video/*"'/>
</#if>
<form action="file/doBatchUpload" method="post" autocomplete="off" enctype="multipart/form-data" class="pageForm required-validate" onsubmit="return iframeCallback(this, $.batchBringBack)">
    <input type="hidden" name="_csrf" value="<@tools.csrfToken admin=true/>"/>
    <div class="pageFormContent" layoutH>
        <dl class="nowrap">
            <dt><@t.page 'file'/>:</dt>
            <dd>
                <input type="hidden" name="field" value="${field!'fileName'}"/>
                <input type="hidden" name="originalField" value="${originalField!}"/>
                <input type="file" name="files" class="required" size="30"${accept!} multiple="multiple"/>
            </dd>
        </dl>
    </div>
    <div class="formBar">
        <ul>
            <li><button type="submit" class="buttonActive" title="ctrl+s"><@t.page 'upload'/></button></li>
            <li><button type="button" class="button close"><@t.page 'button.close'/></button></li>
        </ul>
    </div>
</form>