Thursday, March 8, 2012

HTML file chooser with accept type

It's a example of HTML file choose with "accept", to accept audio files only.

HTML file chooser with accept type

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Mobile-Web-App: HTML file chooser with filter</title>

</head>
<body>

<input type="file" name="filechooser" size="10" accept="audio/*"></input>

</body>
</html>


Next:
- HTML/Javascript: Retrieve file info from input of file type

No comments:

Post a Comment