Discussions

Ask a Question
Back to All

field file for custom meta box

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'
);