I add a event in beforeAdd: $values["file_content"]=file_get_contents($_FILES["file_dest_mobile"]["tmp_name"] ); to get the file content and save to database! file_dest_mobile ----------is the auto generated file field name. Not the db fiield name. the db field name is "dest_mobile".