homerun
homerun

Reputation: 20745

javascript copy input file and get full file path

My first question is: - is it possible to copy from 1 file input data to another file input data? what i mean is:

I have this input : <input type="file" name="fileinput1" />

Now I want to take what the user browse and copy the data to

<input type="file" name="fileinput2" />

Is that possible?


Second question, I have this element on my HTML input multiple="multiple" it let me choose few files. Now I can see in the bottom that the names are getting together like this:

"img1" "img2" "img3" "img4"

Is there any way to separate this into few inputs? Like to write inputs with JavaScript and with the path to everyone of them, is that possible?

Upvotes: 0

Views: 1379

Answers (1)

Quentin
Quentin

Reputation: 943157

is it possible to copy from 1 file input data to another file input data?

No. File inputs are read only.

is there any way to separate this into few inputs?

No.

Upvotes: 2

Related Questions