How do I use Html5 Multiple file input to make it select two different directory files

Asked

Viewed 62 times

0

I am with a personal question, how do I use input file Multiple from Html5 make it select two files as follows: the user selects the first file after the dialog is closed when the file is selected so he selects another file(opening the input file dialog) of another directory hence the incremental input file resulting in two files.

I have tried but my input always replaces the previous one, someone can tell me a way to select two different directory files?

  • I think (I think) that this is impossible. Input files, as far as I know, are read only, so there is no way to insert or take anything from them. What you can do is just create or delete. To do something like this, you would have to create some trick that SIMULATES this.

  • @I don’t think you don’t understand, I don’t want to change the input I just told you what it does when you select two files. The case is, do you have the possibility to select two files from different directories ? Because I have an example of another third-party code that he does it but I can’t get it out of you

  • i can for example in this example of the site http://hayageek.com/docs/jquery-upload-file.php select two different directory files

  • not in a different folder, the two files are in different folder

  • I asked if you want to select 2 files in different folders using the same dialog.

  • You can do it?

  • Then, see on this site here http://hayageek.com/docs/jquery-upload-file.php he can select more files even closing the dialog in Multiple mode

  • It must look something like this https://jsfiddle.net/dz362qq7/ .. keeps adding files and then grabbing them all as Array in PHP.

  • was cool is very similar to idea , but how do I submit the selected

  • why items do not appear selected in input file

  • Those who have been selected are hidden

  • to submit, just submit the form normally

  • Got it I’ll try here

Show 8 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.