ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Razor pages Form Posted File showing null
Title:
B
I
{code}
?
I am using razor pages, I have View Model, Partial View with properties defined in that, But ONPOST I am always getting posted file = null, I am getting all other parameters correctly. @using (Html.BeginForm(FormMethod.Post, new { enctype = "multipart/form-data" })) { using (Html.Awe().BeginContext()) { @Html.EditorFor(o => o.PackageName) @Html.EditorFor(o => o.PackageFile) ... } }
Save Changes
Cancel
Baresha Shaik
asked at 07 Jun 2020
I'll assume you're using the PopupForm, in which case try setting `.UserFormData()`
at 08 Jun 2020
Omu
Thank So Much...It's working..
at 08 Jun 2020
Baresha Shaik
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK