changing value of <input type=file">

2020-02-07 06:10发布

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.

标签: html input
2条回答
Fickle 薄情
2楼-- · 2020-02-07 06:52

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

查看更多
爱情/是我丢掉的垃圾
3楼-- · 2020-02-07 07:02

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.

查看更多
登录 后发表回答