2

I want to know how to programmatically change the value of <input type="file">

I know that this is disabled for security reasons, but is there a workaround for it. I am using PHP.

2 Answers 2

3

If there was a workaround that works now, it certainly will be disabled in the future. As you said yourself, you cannot change the value of an file input element due to security restrictions.

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

Comments

3

No, there isn't a workaround for it. It would be a pretty rubbish security measure if there was.

Comments

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.