You can use the uploadfile input field to allow users to upload any WordPress acceptable file; (e.g. PDF, MP4 videos etc.) See the below example about how you can use the uploadfile input field –
ExampleCopy to Clipboardarray(
'type' => 'uploadfile',
'heading' => esc_attr__( 'Upload PDF', 'fusion-builder' ),
'description' => esc_attr__( 'Add a short description for the field.', 'fusion-builder' ),
'param_name' => 'pdf_file',
'value' => '',
)x 1array(23 'type' => 'uploadfile',45 'heading' => esc_attr__( 'Upload PDF', 'fusion-builder' ),67 'description' => esc_attr__( 'Add a short description for the field.', 'fusion-builder' ),89 'param_name' => 'pdf_file',1011 'value' => '',1213)Parameters type
( string ) input type. heading
( string ) Setting title. description
( string ) Short description about the setting field. param_name
( string ) Attribute name to be used in the shortcode. value
( string ) Default value as file url.