How to take folder as a input in html?

前端 未结 4 673
刺人心
刺人心 2021-01-06 04:26

If i want to take a file as a input in HTML i will be using


Now my question is, is it possible to take a whole

相关标签:
4条回答
  • 2021-01-06 04:42

    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.

    0 讨论(0)
  • 2021-01-06 04:42

    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..

    0 讨论(0)
  • 2021-01-06 04:58

    AFAIK this is not possible. You can only browse for files. As others have mentioned go for a flash plugin or an applet.

    0 讨论(0)
  • 2021-01-06 05:02

    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.

    0 讨论(0)
提交回复
热议问题