开发者

javascript copy input file and get full file path

开发者 https://www.devze.com 2023-04-07 15:42 出处:网络
My first question is: - is it possible to copy from 1 file input data to another file input data? what i m开发者_JAVA百科ean is:

My first question is: - is it possible to copy from 1 file input data to another file input data? what i m开发者_JAVA百科ean 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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号