Discussions
field file for custom meta box
over 6 years ago by Jean Paul NDIAYE
Hi,
I have a error when save a post meta with file field, the path of the file show a undefined message value
here a exemple of my code
$publication->addMetaBox(
'publication_info',
array(
'title' => __('Attachement PDF', 'cuztom'),
'fields' => array(
array(
'id' => 'pdfFile',
'type' => 'file',
'label' => 'Fichier PDF'
),
)
),
'side',
'high'
);