0

Trying to customize my module a bit but I'm stuck. My custom form won't send any information about attached images or files, regardless of what I'm doing it just does not send anything except text, date or checkbox. is there anything in particular what I should do to make my added fields visible in POST ? I did not modified saveAction yet because first I would like to see file name inside request, then I'll add new extended saveAction into BlockController. My CMS Block form (of course these are only additional fields added):

    $fieldset->addField('desktopslide', 'image', array(
        'label'     => Mage::helper('cms')->__('Desktop Slide Image'),
        'after_element_html' => '<br/><small>Select Desktop Slide</small>',
    ));

    $fieldset->addField('mobileslide', 'image', array(
        'label'     => Mage::helper('cms')->__('Mobile Slide Image'),
        'after_element_html' => '<br/><small>Select Mobile Slide</small>',
    ));     

    $fieldset->addField('desktopbanner', 'image', array(
        'label'     => Mage::helper('cms')->__('Thin Desktop Slide Image'),
        'note' => '<small>Select Desktop Slide</small>',
    ));

    $fieldset->addField('mobilebanner', 'image', array(
        'label'     => Mage::helper('cms')->__('Thin Mobile Slide Image'),
        'note' => '<small>Select Mobile Slide</small>',
    ));

and once Save button clicked I expected to see in var_dump($data) new fields containing file names.

What Am I doing wrong? Please advice

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.