Failed to set the 'value' property on 'HTMLInputElement': This input element accepts a filename, which may only be programmatically set to the empty string
<input type="file" class=" form-control hide" placeholder="文件地址" id="filePath" />
$("#filePath").val(path);
type="file" 标签的类型为file只能手动选择 不能程序设置值。 去掉$("#filePath").val(path);