Forums

form variable

jm1968a 26 Feb, 2012
Hi All, My form and file upload works well.

I need to copy my upload to a thumbnail folder. I'm ok with creating the thumbnail file, I just can't get the uploaded file name into a variable. In the from and table I called it file_id, but is shows blank when I <?php echo $file_id; ?>

I have my code under Easy Form Wizard in the Code tab.

Can anyone advise?

Jason
GreyHead 27 Feb, 2012
Hi jm1968a,

If you check the Upload File Help tab you'll see

[list]

  • All configured fields share the same max and minimux size check, if you have different sizes then add another "Files upload" action.

  • Files data will be stored after processing under the $form->files AND $form->data['_PLUGINS_']['upload_files'].

  • You can add a "Custom code" action after this one and use this code to check/user the response data stored : print_r2($form->data['_PLUGINS_']['upload_files']);
  • [/list]


    Bob
    jm1968a 27 Feb, 2012
    thank you, thank you, thank you!!!
    got it...,

    echo $form->data['file_id'];
    This topic is locked and no more replies can be posted.