changing value of <input type=file\">

2020-02-07 06:15发布

问题:

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.

回答1:

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.



回答2:

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



标签: html input