{{if $forceNoscript}}
{{else}}
{{if $allowedFileTypes !== NULL}}
{lang="form_upload_accepted"}
{expression="implode( ', ', $allowedFileTypes )"} {{endif}} {{if $multiple and $totalMaxSize}} {{if $allowedFileTypes !== NULL}} · {{endif}}
{lang="form_upload_total_max"}
{$totalMaxSize}MB {{endif}} {{if !$multiple or !$totalMaxSize or $maxChunkSize < $totalMaxSize}} {{if $allowedFileTypes !== NULL or ( $multiple and $totalMaxSize )}} · {{endif}}
{lang="form_upload_max"}
{$maxChunkSize}MB {{endif}}
{{if $value}} {{foreach $value as $id => $file}}
{{endforeach}} {{endif}}
{{$editorName = preg_replace( "/(.+?)_(\d+?)_$/", "$1[$2]", mb_substr( $name, 0, -7 ) );}}
{lang="editor_attach_drag"}
{lang="editor_attach_choose_drag"}
{lang="editor_attach_choose_nodrag"}
{{if $allowedFileTypes !== NULL || $maxFileSize || $totalMaxSize}}
{{if $allowedFileTypes !== NULL}}
{lang="form_upload_accepted"}
{expression="implode( ', ', $allowedFileTypes )"} {{endif}} {{if $multiple and $totalMaxSize}} {{if $allowedFileTypes !== NULL}} · {{endif}}
{lang="form_upload_total_max"}
{$totalMaxSize}MB {{endif}} {{if $maxFileSize and ( !$multiple or !$totalMaxSize or $maxFileSize < $totalMaxSize )}} {{if $allowedFileTypes !== NULL or ( $multiple and $totalMaxSize )}} · {{endif}}
{lang="form_upload_max"}
{expression="round($maxFileSize,2)"}MB {{endif}}
{{endif}}
{lang="editor_attach_other"}
{lang="editor_insert_existing_file"}
{lang="editor_insert_from_url"}
{lang="editor_uploaded_files"}
{{foreach $value as $attachID => $file}} {{if !$file->isImage()}}
{$file->originalFilename}
{filesize="$file->filesize()"}
{lang="delete"}
{{endif}} {{endforeach}}
{lang="editor_uploaded_images"}
{{foreach $value as $attachID => $file}} {{if $file->isImage()}}
attachmentThumbnailUrl )"}" )' data-role='preview' data-grid-ratio='65' data-action='insertFile'>
{$file->originalFilename}
{filesize="$file->filesize()"}
{{endif}} {{endforeach}}
{{endif}}