How to Upload Folder in HTML 5 - Ethical Intelligent Technologies Blogs

Subscribe To Our Blog

test banner

Breaking

Home Top Ad

Responsive Ads Here

Post Top Ad

Responsive Ads Here

27 June, 2011

How to Upload Folder in HTML 5

Learn how you can upload folder from your browser.
Uploading Folders Feature works only with chrome browser. Google added some special tag in
html that tag will only recongnised by chrome browser that means its not a standard tag with w3c.

Here is an example of HTML File where it has input tag for file upload that
is the standard of w3c.
<html>
<head>
<title>Ethical Intelligent  Technology</title>
</head>
<body>
<input type="file" id="file_input"
directory="" >
</body>
</html>

If you add webkitdirectory tag in input tag then you will dialog box will
get change and it will ask you to select folder not file.


<input type="file" id="file_input"  webkitdirectory="" directory="" >

No comments:

Post a Comment

Post Bottom Ad

Responsive Ads Here

Pages