ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
File Upload In Popupform returning null request
Title:
B
I
{code}
?
Hello everyone, Please i have a use case that requires a file upload control to be in a popup form, The form displays fine but upon posting to controller, The Request.Files.AllKeys property returns null. Please is there something I am doing wrong I need this Urgently
Save Changes
Cancel
seamfaces
asked at 07 Jul 2015
UPDATE: you can set `.UseFormData()` on the `InitPopupForm` helper --- you need to use a js plugin for that, it's not going to work in the popupform, the only demo we have is here: http://prodinner.aspnetawesome.com/Meal (change picture button), if the creation/update of the item needs to happen at the same time with the upload you could put your plugin of choice in the form and on upload populate a hidden input with the name/path of the new file, and on submit you will be posting the filename/path not the file, the file would be already on the server
at 07 Jul 2015
Omu
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