How to set a value to a file input in HTML?

前端 未结 8 2963
天命终不由人
天命终不由人 2020-11-21 04:45

How can I set the value of this?


8条回答
  •  南旧
    南旧 (楼主)
    2020-11-21 05:16

    You can't. And it's a security measure. Imagine if someone writes JS that sets file input value to some sensitive data file?

提交回复
热议问题