Common/Frontend/Form/Repository/Field/FileUpload.twig
<div class="form-group {{ ElementGroup }}">
{% if( ElementLabel is not empty ) %}
<label>{{ ElementLabel }}{% if( Required is not empty ) %}<span class="text-danger"> *</span>{% endif %}</label>
{% endif %}
{% if( ElementIcon is not empty ) %}
<div class="input-group">
<span class="input-group-addon">
{{ ElementIcon }}
</span>
{% endif %}
<input type="file" class="form-control" name="{{ ElementName }}" placeholder="{{ ElementPlaceholder }}"
value="{{ ElementValue }}" {% if( Disabled is not empty ) %}disabled{% endif %} {% if( Required is not empty ) %}required{% endif %} {% if( TabIndex is not empty ) %}tabindex="{{ TabIndex }}"{% endif %}/>
{{ ElementFeedbackIcon }}
{% if( ElementIcon is not empty ) %}
</div>
{% endif %}
{{ ElementFeedbackMessage }}
</div>
<script type="text/javascript">
//noinspection JSUnresolvedFunction
executeScript(function()
{
Client.Use('ModUpload', function()
{
jQuery('input[type="file"][name="{{ ElementName }}"]').ModUpload({{ ElementOption }});
});
});
</script>