[{include file="headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign box="box"}] [{oxstyle include=$oViewConf->getModuleUrl('d3modcfg_lib', 'out/admin/src/d3_mod_cfg.css')}] [{oxstyle}] [{include file="@d3importer/admin/errormessages.tpl"}] [{if $readonly}] [{assign var="readonly" value="readonly disabled"}] [{else}] [{assign var="readonly" value=""}] [{/if}]
[{if $oxid != "-1"}] [{/if}] [{capture name="javaScript"}][{strip}] document.getElementById("newuploadfile").addEventListener("change", function (e) { var count=1; var files = e.currentTarget.files; for (var x in files) { var filesize = files[x].size; let filename = files[x].name; var maxfilesize = '[{$oView->getFormattedMaxUploadFileSize()}]'; if (filename !== "item" && typeof filename !== "undefined" && filesize !== "undefined" && filesize > [{$oView->getSmallestSystemUploadRestrictions()}]) { alert(`[{oxmultilang ident="D3_IMPORTER_MAIN_EXCEEDS_MAXFILESIZE"}]`); } } }); [{/strip}][{/capture}] [{oxscript add=$smarty.capture.javaScript}] [{include file="bottomnaviitem.tpl"}] [{include file="bottomitem.tpl"}]