File Upload - Single to allow the search of .txt files
I have made a page that does upload from files to the server, but now I would like that when the client does click on button "browser" in the window search in Type of File appears only Text (*.txt) or something like that, is just to limit the search .txt files.
RE: File Upload - Single to allow the search of .txt files
Tag <INPUT> - http://www.w3schools.com/tags/tag_input.asp
list_of_mime_types : A comma-separated list of MIME types that indicates the MIME type of the file transfer
<input type="file" name="file" accept="list_of_mime_types">
MIME Types - http://www.w3schools.com/media/media_mimeref.asp
*.txt => text/plain