I am trying to use ctools modal form to edit node form. This form is containing a file field. The Form is rendering properly. When I try to upload a file on clicking upload button, file field has been deleted from the page. I tried to debug via firebug to see the response, it was correct as we get without modal form.
I added the following code in modal callback.
ctools_include('node.pages', 'node', ''); ctools_include('modal'); ctools_include('ajax'); $form_state['build_info']['args'] = isset($form_state['build_info']['args']) ? $form_state['build_info']['args'] : array($node); form_load_include($form_state, 'inc', 'node', 'node.pages');
I took the reference from Ajax upload in Ctools Modal Window but it still having problem.