Insert files into HTML input programmatically via javascript -


is there way put file server file type input tag via javascript? way change value of text type input, want insert file file type input.

i tried things like:

var _file = new file(); document.getelementbyid('fileinputid').files[0] = _file; 

but seems filelist property of input protected , cannot change file objects inside it.

i want bring file server , load file input.

is there way achieve issue?

thank y'all!


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -