Filter file type for Joomla media form field
<field type="filelist" name="pdf" label="Select PDF" directory="images" filter="\.pdf$"/>