1

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;" />
2
  • This input element accepts a filename, which may only be programmatically set to the empty string. Commented Apr 1, 2014 at 4:17
  • possible duplicate of Dynamically set value of a file input Commented Apr 1, 2014 at 4:19

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

2 Comments

are you sure there is no way?
Yes, there's no way to achieve it. You can check some same threads with regards to this issue: stackoverflow.com/questions/1017224/… , stackoverflow.com/questions/1696877/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.