      on-progress="onUploadProgress(progress)"
                     on-success="fileUploaded( response )"></div>
                <div ng-if="availableSpace" class="field-hint" style="margin-bottom: 0">{{availableSpace}}</div>
            </div>
        </div>

        <div class='form-group' ng-if="!file.external">
            <label class='col-sm-4 control-label' localized>form.file.name</label>
            <div class='col-sm-8'>
                <input type='text'
                       ng-model='file.file