No value stored by file upload field

edited May 2014 in Modules
I have a form in a simple module with a file upload field:
$fields['image_file'] = array('type' => 'file', 'label' => 'PHOTO', 'upload_path' => $upload_path, 'overwrite' => TRUE);

I would like to use the original name of the uploaded file in some "after post" processing, but no value seems to be stored in $values['image_file']. It is set, but it is empty.

An easy way to do this?

Comments

  • edited 10:44AM
    There is an "upload_data" property that gets set on your model you can use which will contain the Upload Classes upload_data() method results.
Sign In or Register to comment.