How to duplicate file input value?

Is there any way to duplicate the file input value? in this case, if i have including a file in fileA input, the value of fileB is following fileA values, is there anybody know how to do this?

<input type="file" name="fileA" />
<input type="file" name="fileB" style="display:none;" />

Upvotes: 1

Views: 2105

Answers (1)

Felix
Felix

Reputation: 38102

You're not allowed to set the value of a file input element due to security issues.

Upvotes: 1

Related Questions