Uncaught DOMException: Failed to set the 'value' property on 'HTMLInputElement': This input element accepts a filename, which may only be programmatically set to the empty string.
时间:2018-09-27 16:32:09
收藏:0
阅读:2759
今天上传图片遇到这个报错
百度了下,网上说是input标签type=file所以导致的问题,可是我的type=hidden
解决办法:
把上面的代码改成如下问题就解决了
原文:https://www.cnblogs.com/ouguangqiang/p/9713645.html
评论(0)