I have this properly posting the image and binding to the HttpPostedFileBase property on my view model, but when I put the same property in the view model's base class, it doesn't model bind the bytes. It still shows the image name, but not the content stream.
I have tested everything I can think of. Please help!
These pictures tell the whole story:
Thanks in advance. Let me know if anything isn't clear.
UPDATE
I think this is a legit bug. I tried all the below suggestions (as of 1/26) before posting on SO. I also tried: 1. creating the base property as virtual and overriding it in the child class 2. creating a new property in the child class which merely gets/sets the base property
My solution, which is far from elegant, is to add a "temporary" property on the child class and first-thing in the MVC action method set the base property to it. I'm hoping a real solution presents itself and I can revert this cloodge and do the proper fix.