ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Photo Upload in Create/Edit Modal as Data Input
Title:
B
I
{code}
?
I'd like to Create/ Edit an app user while adding a photo in the same modal partial. Do you have demo code for photo upload as a form input? Thanks.
Save Changes
Cancel
Stephan Luis
asked at 17 Jul 2018
Answers
B
I
{code}
?
we don't have a demo for that, only the [https://prodinner.aspnetawesome.com/Meal one in prodinner] but it is a separate popup for image upload and crop, for the `PopupForm` if you want to upload file via ajax you need to set `.UseFormData(true)`, `FormData` won't work in older browsers (IE9) or you can make use of an external plugin (like the one in prodinner), so you post the file separately and on the form post you only post the already uploaded file id
Save Changes
Cancel
Omu
answered at 17 Jul 2018
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