Hi
How do I display the file type on the front end?
I’m using the File field to upload a PDF or DOC file and want to be able to check for a mime type.
Using the below code; I can see the mime type, but what snippet do I need to use in order to display it?
<?php
$value = get_sub_field('lesson_file');
echo '<pre>';
print_r( $value );
echo '</pre>';
?>
Thanks
Answer:
echo $value['mime_type'];
Thanks