[#assign localFileUploaded = false readOnly = input.attributes.readOnly?? && input.attributes.readOnly showDocumentLibrarySelector = input.attributes.selectFromDocumentLibrary?? && input.attributes.selectFromDocumentLibrary ] [#if input.value?? && !showDocumentLibrarySelector] [#assign localFileUploaded = true] [/#if]
[#if readOnly] [#else]
[#if input.attributes.fileName??]${htmlUtil.escape(input.attributes.fileName)}[/#if]
[/#if] [#if input.errorMessage?has_content]

${input.errorMessage}

[/#if] [#if !readOnly && ((input.showHelpText && input.helpText?has_content) || (configuration.showSupportedFileInfo && input.attributes.allowedFileExtensions?? && input.attributes.maxFileSize??))]

${configuration.showSupportedFileInfo?then(languageUtil.format(locale, "upload-a-x-no-larger-than-x-mb", [input.attributes.allowedFileExtensions!"", input.attributes.maxFileSize!""]), '' )} ${input.showHelpText?then(htmlUtil.escape(input.helpText), '' )}

[/#if]