0

If we have single file input then we set it with

 <input type='file' value='/bla/bla/bla.jpg'>

I have urls for example:

var images = ['http://bla.com/bla.jpg','http://bla.com/bla2.jpg']

How can we set multiple images from urls to file input?

<input type='file' multiple>
freedomn-m
  • 27,664
  • 8
  • 35
  • 57

1 Answers1

0

Note: The multiple attribute works with the following input types: email, and file.

For <input type="file">: to select multiple files, hold down the CTRL or SHIFT key while selecting.

And when we want to take file input by default, then we cannot do it. It means we cannot set a value to a file input due to some security reasons in HTML.

Vinayak
  • 80
  • 8