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
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!