﻿@using FormFactory
@model PropertyVm
<input type="hidden" name="@Model.Name" id="MyFileSubmitPlaceHolder" />@*here to trick model binding into working :( *@
<input type="file" name="@Model.Name" @Model.Readonly() @Model.Disabled() />
﻿@using FormFactory
@model PropertyVm
@if(!Model.Readonly)
{
    <input type="hidden" name="@Model.Name"  /> @*here to trick model binding into working :( *@
    <input type="file" name="@Model.Name" @Model.Readonly() @Model.Disabled() />
}
Hide file input if readonly
Hide file input if readonly
