I'm using <input type=file> to let a user select a file for upload. I only want to let them select a .pdf document. I'm not sure how filter out the file dialog using a <html> control, so I was thinking about doing a string search on the file chosen. Is there a way to check if it's a .pdf?
