{{$editorName = preg_replace( "/(.+?)_(\d+?)_$/", "$1[$2]", mb_substr( $name, 0, -7 ) );}}
{{if $allowedFileTypes !== NULL || $maxFileSize || $totalMaxSize}}
{{if $allowedFileTypes !== NULL}}
-
{lang="form_upload_accepted"}:
{expression="implode( ', ', $allowedFileTypes )"}
{{endif}}
{{if $multiple and $totalMaxSize}}
-
{lang="form_upload_total_max"}:
{filesize="$totalMaxSize * 1048576"}
{{endif}}
{{if $maxFileSize and ( !$multiple or !$totalMaxSize or $maxFileSize < $totalMaxSize )}}
-
{lang="form_upload_max"}:
{expression="round($maxFileSize,2)"}MB
{{endif}}
{{if $maxFiles}}
- {lang="form_upload_max_files" pluralize="$maxFiles"}
{{endif}}
{{endif}}
{lang="editor_uploaded_files"}
{{foreach $value as $attachID => $file}}
{{if $file->mediaType() === 'file'}}
securityKey}} data-filekey='{$file->securityKey}'{{endif}}>
{{endif}}
{{endforeach}}
{lang="editor_uploaded_images"}
{{foreach $value as $attachID => $file}}
{{if $file->mediaType() === 'image'}}
{{endif}}
{{endforeach}}
{lang="editor_uploaded_videos"}
{{foreach $value as $attachID => $file}}
{{if $file->mediaType() === 'video'}}
originalFilename )"}">
{{endif}}
{{endforeach}}
{lang="editor_uploaded_audio"}
{{foreach $value as $attachID => $file}}
{{if $file->mediaType() === 'audio'}}
{{endif}}
{{endforeach}}
{{endif}}