I have created a form on Shiny which has fileInput button to upload only .pdf extension file.But while testing it i found that it's accepting all kind of file type however i have mentioned .pdf in accept parameter of fileInput shown in below codes:
fileInput("fileid","Upload .pdf file only",multiple = FALSE, accept = c('.pdf'),width = "250px")
screenshot below that accepts all kind of file type:
accepting .xls file type
Accepting .csv file type:
I am looking for a solution that restrict user to upload .pdf file only and won't allow user to upload if some other file is selected.
Any help would be appreciated. :)

