If i want to take a file as a input in HTML i will be using
<input type="file">
Now my question is, is it possible to take a whole directory as a input,if yes how to do that?
If i want to take a file as a input in HTML i will be using
<input type="file">
Now my question is, is it possible to take a whole directory as a input,if yes how to do that?
Not explicitly through HTML (although I'm not sure about HTML 5). You need some Java applet or Flash movie to do it. One way I do it is by using a custom PHP script that takes in a zip or tar file and decompresses it on the back end then dumps it.
Short answer: No, it's not possible.
You'll need to use something like a Java applet, ActiveX plugin or Flash (I know it does at least multiple files, not quite sure about folders) to do that.
AFAIK this is not possible. You can only browse for files. As others have mentioned go for a flash plugin or an applet.
There was a post in another site
it says zipped folder or tar will be taken in as input for <input type=FILE />
it also says some thing about javascript which can come in handy for uploading folder..
the best option would be writing in Java applet, ActiveX plugin or Flash or may be even something called Jupload(but this takes only mutiple file uploads..not sure about folder though)
This is the link to that post See This Link
Hope this helps..
Is it ok to use
<input type="file" webkitdirectory mozdirectory id="folder"/>