How to set default value in input type file by using javascript?

前端 未结 2 1103
说谎
说谎 2021-01-21 10:22

When I want to upload file from local system to server. At that time I want to set local path in input type file field but it is not set to that value. So I\'m unable to upload

2条回答
  •  没有蜡笔的小新
    2021-01-21 10:48

    For securinty reasons browsers do not allow, upload inputs are readonly , unless you have have custom made uplod input

提交回复
热议问题